翻页不成功
我写的没有问题,但是
<form action="<%=basePath %>List.action" id="mainForm" method="post"> <input type="hidden" name="currentPage" id="currentPage" value="${page.currentPage }"/> .......... <div class='page fix'> 共 <b>${page.totalNumber }</b> 条 <c:if test="${page.currentPage!=1}"> <a href="javascript:changeCurrentPage('1')" class='first'>首页</a> <a href="javascript:changeCurrentPage('${page.currentPage-1 }')" class='pre'>上一页</a> </c:if> 当前第<span>${page.currentPage }/${page.totalPage }</span>页 <c:if test="${page.currentPage!=page.totalPage }"> <a href="javascript:changeCurrentPage('${page.currentPage+1 }')" class='next'>下一页</a> <a href="javascript:changeCurrentPage('${page.totalPage }')" class='last'>末页</a> </c:if> 跳至 <input id="currentPageText" type='text' value='1' class='allInput w28' /> 页 <a href="javascript:changeCurrentPage($('#currentPageText').val())" class='go'>GO</a> </div> /** * 修改当前页码,调用后台重新查询 * @param currentPage */ function changeCurrentPage(currentPage){ $("#currentPage").val(currentPage);//$("#currentPage")引号里边是因为list.jsp中有一个hidden,不理解它的作用 $("#mainForm").submit(); }
翻页怎么不成功呢,没有报错,点击下一页没有反应?不知道出了什么问题