ITeye博客

关于Freemarker里面HashMap的使用

houzi · 2009-05-27 16:25 · J2EE · Markdown

< #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>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。