asialee 发表于 2013-2-7 15:07:39

FreeMarker学习笔记

今天用到了FreeMaker的集合,要用到List和Map的嵌套,可能时候由于我的数据结构定义的不好,但是又想学学这个怎么定义,所以就研究了一下,分享一下。
FreeMarker里面List和Map的嵌套:
<#list myList as listItem><#assign keys = myList?keys><#list keys as key><label>This is the key: ${key}.</label><label>This is the value: ${myList}</label></#list></#list>
页: [1]
查看完整版本: FreeMarker学习笔记