小编Pao*_*lis的帖子

在控制器中渲染Grails标记

我在调用控制器函数时渲染一个select.

class FormController {
    def document() {
        render """<g:select name="tipo" from="${['','one','two']}" />"""
    }
}
Run Code Online (Sandbox Code Playgroud)

它不起作用..当我用这个函数替换div时,html什么也没出现.

grails controller gsp

4
推荐指数
1
解决办法
1542
查看次数

标签 统计

controller ×1

grails ×1

gsp ×1