`
Chris_Lu
  • 浏览: 46461 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

关于Freemarker里面HashMap的使用

    博客分类:
  • J2EE
阅读更多

 

< #list testMap?keys as testKey>
       < option value =" ${testKey} " >

              ${ testMap.get(testKey ) }

     </ option>
<
/ #list>

或者使用:

< #list testMap.keySet() as testKey>
       < option value =" ${testKey} " >

        ${ testMap.get(testKey) }

     </ option>
<
/ #list>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics