freemarker 循环map里面的对象形式List
程序员文章站
2022-07-14 09:55:50
...
<#if disMap?exists>
<#list disMap?keys as key>
<#if ((disMap[key]))??&&((disMap[key])?has_content)>
<#list (disMap[key]) as dis>
${(dis.typename)!}
</#list>
<#if !((disMap[key])?has_content)><div class='clear'></div></#if>
</#if>
</#list>
</#if>
转载于:https://my.oschina.net/chen1988/blog/3101184
上一篇: 单例模式的双重检测问题