freemarker中遍历list获取索引值
<#list currentPathList as path><#if path_index == 0></#if> </#list>
as 后面的那个变量,加上_index,就可以表示当前循环到第几项
freemarker中遍历list获取索引值
<#list currentPathList as path><#if path_index == 0></#if> </#list>
as 后面的那个变量,加上_index,就可以表示当前循环到第几项