1. 程式人生 > >freemarker獲取list索引值

freemarker獲取list索引值

freemarker中遍歷list獲取索引值

<#list currentPathList as path>
    <#if path_index == 0)>
    </#if>	
</#list>
as 後面的那個變數,加上_index,就可以表示當前迴圈到第幾項