<#if pmap??>
<#assign x=0 />
<#list pmap.keySet() as strKey>
<#if x%6=0><tr></#if>
<#assign x=x+1 />
<td><input id="cbl_zd_0" type="checkbox" name="cbl_zd$0" /><label for="cbl_zd_0">${strKey}</label></td>
<#if x%6=0></tr></#if>
</#list>
</#if>
这段代码就能达到 每一行(tr)显示 6列数据(td)
最后
以上就是安静黑猫最近收集整理的关于freemarker 遍历map 同一行显示多列 即 每一个tr 显示指定数量td的全部内容,更多相关freemarker内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复