freemarker不支持for循环,只有通过<#list 1.. as i><#if xxxx<i></#list>的形式处理 转载于:https://blog.51cto.com/zhangdivy/953942