问题描述
#foreach($keyin$allMessageList)#if($trStyle==1)<trclass="datagrid1"><td><inputname="delectId"type="checkbox"value="$key.Id"id="delectId"class="bhgselect"onclick="numcheck(this.form)"/></td><td>$key.userName</td><td>$key.userName2</td><td>$key.getMessageContent()</td><td>$!key.getMessageDate().toString().substring(0,19)</td></tr>#set($trStyle=2)#else<trclass="datagrid2"><td><inputname="delectId"type="checkbox"value="$key.Id"id="delectId"class="bhgselect"onclick="numcheck(this.form)"/></td><td>$key.userName</td><td>$key.userName2</td><td>$key.getMessageContent()</td><td>$!key.getMessageDate().toString().substring(0,19)</td></tr>#set($trStyle=1)#end#end页面取值取不出来,allMessageList里面有值页面显示直接把这个$key.userName显示出来了,但是其他的页面类似的调用能取到值
时间: 2024-09-11 19:25:56