2011-12-11 84 views

回答

1

使用<如果>标签,

<g:if test="${showButton}"> 
    <input type="submit" value="Submit" /> 
</g:if> 
+0

是什么意思在这里用'测试= “$ {} showButton”'? –

+0

这是布尔表达式。 showButton只是其他地方定义的变量 – aldrin