FreeMarker学习笔记

xiaoxiao2022-06-11  42

[color=green]今天用到了FreeMaker的集合,要用到List和Map的嵌套,可能时候由于我的数据结构定义的不好,但是又想学学这个怎么定义,所以就研究了一下,分享一下。 FreeMarker里面List和Map的嵌套:[/color] <#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[key]}</label> </#list></#list> 相关资源:Java 面经手册·小傅哥(公众号:bugstack虫洞栈).pdf
转载请注明原文地址: https://www.6miu.com/read-4932103.html

最新回复(0)