c标签

来源:互联网 发布:软件提速精灵 编辑:程序博客网 时间:2024/05/17 18:23

数据过长用。。。代替

<c:choose>

<c:when test="${fn:length(each.title) > 10}">
<span title="${each.title}" ><c:out value="${fn:substring(each.title, 0, 10)}..." /></span>
</c:when>
<c:otherwise>
<span title="${each.title}" ><c:out value="${each.title}" /></span>
</c:otherwise>
</c:choose>
0 0
原创粉丝点击