Freemarker中判断字符串长度

 

<#if content?length gt 100>class

   ${content[0..100]}...di

    <#else>co

          ${content}

    </#if>

相关文章
相关标签/搜索