<#if downLoadAttachmentUrls?? && (downLoadAttachmentUrls?size > 0)>
<#assign index = 0 >
<#list downLoadAttachmentUrls as urlMap >
<#list urlMap?keys as itemKey>
<#assign index = index+1> //使index循环加一
<a href="${itemKey}" name="att_down${index}" target="_blank">${urlMap[itemKey]}</a>
</#list>
<br/>
</#list>
</#if>
在freemarker标签中定义一个自增变量 并且遍历一个List嵌套map集合
最新推荐文章于 2021-02-28 10:33:23 发布