1.freemarker遍历list判断第一个、最后一个元素 第一个: <#list list as x> <#if x_index = 0> </#if> </#list> 最后一个: <#list list as x> <#if x_has_next> </#if> </#list>