<c:forEach var="i" begin="1" end="${totalPage}" step="1">
<c:choose>
<c:when test="${i==currentPage}"><span class="current">${i}</span></c:when>
<c:otherwise><a href="#"><c:out value="${i}" /></a></c:otherwise>
</c:choose>
</c:forEach>
JSTL中if/else使用
最新推荐文章于 2021-07-01 03:09:50 发布