例:
<#list projectuniquelist as project>
${project_index +1}
</#list>
Freemaker 的List指令隐含了两个循环变量:
item_index:当前迭代项在所有迭代项中的位置,是数字值。从0开始,如果要在网页中显示索引需要 +1
${project_index +1}
item_has_next:用于判断当前迭代项是否是所有迭代项中的最后一项。