关于Freemarker里面HashMap的使用

xiaoxiao2026-08-04  4

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

转载请注明原文地址: https://www.6miu.com/read-5050705.html

最新回复(0)