我试着比较普惠制中的变量。
如果我这样做了:
<g:if test="${p.id.equals(1)}">
,我知道结果了。
但如果我这么做了
<g:if test="${p.id.equals(id)}">
,我从来没有得到过。
发布于 2012-12-21 15:37:06
试一试
<g:if test="${p.id == id}">
https://stackoverflow.com/questions/13989168
相似问题