随笔-124  评论-49  文章-56  trackbacks-0
<#if post.title?length lt 25 >  
${post.title}
<#else>
     ${post.title[0..21]}...
</#if>
注:${post.title[0..21]}取得标题的前22个字符,后面加上省略号...(自定义的)
posted on 2009-10-29 13:24 junly 阅读(302) 评论(0)  编辑  收藏 所属分类: freemark/velocity

只有注册用户登录后才能发表评论。


网站导航: