其他 · 2020年1月28日 0

thymeleaf 解决字符串太长显示问题(截取显示部分字符串)

下面的文章有thymeleaf 拼接字符串的写法和处理字符串太长显示部分的方法

下面的方法是显示指定的字符:

 th:text="${#strings.abbreviate(t.signTitle,25)}"  

参考:https://blog.csdn.net/qq_37599827/article/details/93362132

Share this: