写的分页只显示上一页和下一页,中间页码不显示
程序员文章站
2022-06-07 12:30:32
...
<c:forEach items="${page.navigatepageNums}" var="num">
<c:if test="${num} == ${page.pageNum}">
<li class="active"><a href="${PATH}/admin/index?pageNum=${num}">${num}<span class="sr-only">(current)</span></a></li>
</c:if>
<c:if test="${num} != ${page.pageNum}">
<li><a href="${PATH}/admin/index?pageNum=${num}">${num}</a></li>
</c:if>
</c:forEach>
test中${num} == ${page.pageNum}写错了
正确写法:${num == page.pageNum}
上一篇: centos_redis 安装脚本