freemarker list使用

1,遍历list

<#listaTyKsZjgzZbsasaTyKsZjgzZb>

</#list>

<selectid="tkflId"data-roles="mui-combogrid"name="tkflId"style="width:250px;"

data-options="

panelWidth:360,

idField:'id',

textField:'className',

required:true,

url:'${contextPath}/ty/mvc/ty/zy/stgl/service/getTkfl',

columns:[[

{field:'id',title:'ID',width:220},

{field:'className',title:'分类名称',width:80},

{field:'classLevel',title:'级别',width:60}

]]">

</select>

2,遍历map

<#listmaps.key>

</#list>

3,获取list索引

<#listlistasli>

${li_index}

</#list>

相关推荐