freemarker 遍历map 对象
当Map里面的key 是Object(String,Integer,etc)等要通过以下的方式来得到
<#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><#list pager.map.get("m") as list><li<#if (list_index + 1) % 4 == 0> target="_blank"><img src="${base}${(list.productImageList[0].thumbnailProductImagePath)!systemConfig.defaultThumbnailProductImagePath}" alt="freemarker 遍历地图 对象" /></a><div alt="freemarker 遍历地图 对象" target="_blank">${list.name}</a><#else><a href="${base}${list.htmlFilePath}" alt="freemarker 遍历地图 对象" target="_blank">${list.name[0..25]}...</a></#if></div><div name="addCartItemButton" <#if list.isOutOfStock>value="缺货" disabled<#else>value="购买"</#if> hidefocus="true" /><input type="button" name="addFavoriteButton" value="收藏" hidefocus="true" /></div></div></li></#list>