Freemarker中list的用法

使用list進行遍歷 基本遍歷:html <#list sequence as item> ${item.username} </#list>   其中sequence是變量名,它表明一個list。item是我起的別名,遍歷的時候,它表明LIST中的一項。 獲取索引值:spa <#list sequence as item> ${item_index} </#list>   索引值的獲取是"別名_
相關文章
相關標籤/搜索