FreeMaker 截取指定长度字符串

判断获取的值的字符串长度是否小于等于15,采用缩略的方式显示:   <#if item.auction_name?length lte 15>       ${item.auction_name!}   <#else>       ${item.auction_name?substring(1,15)!}...   </#if> 
相关文章
相关标签/搜索