EL表达式截取字符串

2019-03-11  本文已影响0人  yahzon
<c:if test="${fn:length(work.workTitle)>5}">
               ${fn:substring(work.workTitle, 0, 5)} ...
</c:if>
<c:if test="${fn:length(work.workTitle)<=5}">
       ${work.workTitle}
</c:if>

作者:下半夜的雨
来源:CSDN
原文:https://blog.csdn.net/fancheng614/article/details/78312965
版权声明:本文为博主原创文章,转载请附上博文链接!

上一篇下一篇

猜你喜欢

热点阅读