FreeMaker 截取指定长度字符串时间:2021-09-07 22:44:04 判断获取的值的字符串长度是否小于等于15,采用缩略的方式显示: <#if item.auction_name?length lte 15> ${item.auction_name!} <#else> ${item.auction_name?substring(1,15)!}... </#if>