<#list category as cate> <#if cate_index=0> <li class="fl active"><img src="${cate.categoryPcPic}" alt="${cate.categoryName}"> ${cate.categoryName} </li> <#elseif !cate_has_next > <li class="fl" id="last-li"><img src="${cate.categoryPcPic}" alt="${cate.categoryName}"> ${cate.categoryName} </li> <#else > <li class="fl"><img src="${cate.categoryPcPic}" alt="${cate.categoryName}"> ${cate.categoryName} </li> </#if> </#list>
Freemarker循环list
最新推荐文章于 2022-12-07 17:56:42 发布