于春停吧 关注:42贴子:322
  • 0回复贴,共1
<#-- 写一个子集列表 -->
<#macro writeOne node expand>
<li>
<input type="checkbox" name="${node.nameParam}" value="${node.id}"
<#if node.checked>
checked="checked"
</#if>
/>
<span>${node.name}</span>
<#if expand && (node.childList?? && node.childList?size > 0)>
<ul>
<@write nodeList=node.childList expand=expand/>
</ul>
</#if>
</li>
</#macro>
<#-- 写上级结点 -->
<#macro write nodeList expand>
<#list nodeList as node>
<@writeOne node=node expand=expand/>
</#list>
</#macro>
<@write nodeList=parameters.nodeList expand=parameters.expand/>


IP属地:山东1楼2015-08-01 17:38回复