Freemarker:
<#list testMap?keys as keyInfo>
<option value="${keyInfo}">
${testMap.get(keyInfo)}
</option>
</#list>
JAVA:
map<Object,Object> testMap = new HashMap<Object, Object>();
在Freemarker中用hashmap比较方便。
Freemarker:
<#list testMap?keys as keyInfo>
<option value="${keyInfo}">
${testMap.get(keyInfo)}
</option>
</#list>
JAVA:
map<Object,Object> testMap = new HashMap<Object, Object>();
在Freemarker中用hashmap比较方便。