【问题标题】:Merging maps in Freemarker在 Freemarker 中合并地图
【发布时间】:2012-02-15 05:52:02
【问题描述】:


我找不到任何关于如何合并两个哈希映射的文档。这就是我想要实现的目标

merge({"class":"select"}) /> > ....




${key}="${attrs[key]}"
#if>
#list>

【问题讨论】:

    标签: map freemarker literals built-in-types built-in


    【解决方案1】:
    commonattrs + {"class": "select"}
    

    记录在这里:http://freemarker.org/docs/dgui_template_exp.html#dgui_template_exp_hashop

    【讨论】:

      猜你喜欢
      • 2015-03-13
      • 2011-03-09
      • 2018-10-23
      • 2012-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-22
      相关资源
      最近更新 更多