Fight With Me!!!

导航

freemarker截取字符串

[#if   a.title?length   lt   23   ]  
 ${a.title}
 [#else]
${a.title[0..22]}...
[/#if] 

posted on 2016-05-28 17:01  nickTimer  阅读(1971)  评论(0编辑  收藏  举报