freemarker截字符串方法
<p><font face="Arial"><#if news.title?lenth lt 13>${news.title} <br />
<#else> ${news.title[0..12]}... <br />
</#if> <br />
</font></p>
<p><font face="Arial">其它替代的方法是,使用lt、lte、gt和gte来替代<、<=、>和>=</font></p>
<p><font face="Arial">来源:<a href="http://blog.chinaunix.net/u/18957/showart_283814.html">http://blog.chinaunix.net/u/18957/showart_283814.html</a></font></p>
/showart_283814.html</a></font></p>
</p>
字符串处理资料
http://freemarker.sourceforge.net/docs/ref_builtins_string.htmlsp; <#else>
${news.title[0..12]}...
</#if>
<#else> ${news.title[0..12]}... <br />
</#if> <br />
</font></p>
<p><font face="Arial">其它替代的方法是,使用lt、lte、gt和gte来替代<、<=、>和>=</font></p>
<p><font face="Arial">来源:<a href="http://blog.chinaunix.net/u/18957/showart_283814.html">http://blog.chinaunix.net/u/18957/showart_283814.html</a></font></p>
/showart_283814.html</a></font></p>
</p>
字符串处理资料
http://freemarker.sourceforge.net/docs/ref_builtins_string.htmlsp; <#else>
${news.title[0..12]}...
</#if>
lunzi
2008-02-26 13:51:42
评论:0
阅读:359
引用:0
