Freemarker中判斷字符串長度

 

<#if content?length gt 100>class

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

    <#else>co

          ${content}

    </#if>

相關文章
相關標籤/搜索