有没有办法在optionValue中显示多个字段名称?
<g:select name="id" from="${Books.list()}" optionKey="id"
value="" optionValue="name"
noSelection="${['null':'Select Publisher...']}"/>
Run Code Online (Sandbox Code Playgroud)
EXPE:
<g:select name="id" from="${Books.list()}" optionKey="id"
value="" optionValue="name and author"
noSelection="${['null':'Select Publisher...']}"/>
Run Code Online (Sandbox Code Playgroud) grails ×1