求高手请教下面的这两段<C:if>的结果为什么不一样?
<c:if test="${param.currentPageNo != 1 }">
<a href=" javascript:page_nav( document.forms[0],1)">首页</a>
<a href=" javascript:page_nav(document.forms[0],${param.currentPageNo-1 } )">上一页</a>
</c:if>
<c:if test="${param.currentPageNo!=param.totalPageCount}">
<a href=" javascript:page_nav(document.forms[0],${param.currentPageNo+1}) ">下一页</a>
<a href=" javascript:page_nav(document.forms[0],${param.totalPageCount })">最后一页</a>
</c:if>
与
<c:if test="${param.currentPageNo >1 }">
<a href=" javascript:page_nav( document.forms[0],1)">首页</a>
<a href=" javascript:page_nav(document.forms[0],${param.currentPageNo-1 } )">上一页</a>
</c:if>
<c:if test="${param.currentPageNo<param.totalPageCount}">
<a href=" javascript:page_nav(document.forms[0],${param.currentPageNo+1}) ">下一页</a>
<a href=" javascript:page_nav(document.forms[0],${param.totalPageCount })">最后一页</a>
</c:if>
第一段正常,第二段当到第二页时不显示下一页和最后一页。
掐指一算:参数少了.调试看下参数吧.
<c:if test="${param.currentPageNo<param.totalPageCount}">
说明这个条件不满足吧
就这一句,换成不等就没问题了,其他的都没动