freemarker

https://www.cnblogs.com/beyang/p/5249974.html

在freemarker中获取当前时间: ${.now}

freemark使用list遍历出来的值用逗号隔开,但是不想要最后的那个逗号怎么办? 

<p>水果:<#list misc.fruits as fruit> $ {fruit} <#sep>, </#list>

输出: <p>水果:橙子,香蕉


项目中用法:var map ={<#list busiKindList as item>'${item.codeId}':'${item.codeName}'<#sep>,</#list>};

 

posted @ 2018-08-14 09:26  高木子  阅读(398)  评论(0编辑  收藏  举报