我点击下一页为啥传递过来的currPage是11,本应该为2,我可以在回调方法里面这样吗?
$("#pagination_7").whjPaging({
totalPage: totalPageNum,
showPageNum: showPageNum,
isShowFL: false,
isShowPageSizeOpt: false,
isShowSkip: false,
isShowRefresh: false,
isShowTotalPage: true,
isResetPage: false,
callBack: function (currPage, pageSize) {
alert(currPage);
// 请看这里的代码
$("div[name='whj_nextPage']").click(function(){
currPage = currentPage + 1;
});
alert(currPage+":")
var year = $(".time-select").find("li.active a.active span.year").first().text();
var mon = $(".time-select").find("li.active a.active span.month").first().text();
var yearAndMon = year+"年"+mon+"月";
var form_action = "housing-Market-Opening-This-Month?action=changePage&yearAndMon="+yearAndMon+"¤tPage="+currPage;
$("form#data").attr("action",form_action);
$("form#data").submit();
}
});
回复
Uncaught TypeError: Cannot read property 'pageText' of undefined at init.whjPaging (pagination.min.js:7) at Object.success (ware_index?sso_service_ticket=18255a1d77394f47bb7f3d1aba07cde7:720) at l (jquery.js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at T (jquery.js:2) at XMLHttpRequest.r (jquery.js:2) whjPaging @ pagination.min.js:7 success @ ware_index?sso_service_ticket=18255a1d77394f47bb7f3d1aba07cde7:720 l @ jquery.js:2 fireWith @ jquery.js:2 T @ jquery.js:2 r @ jquery.js:2 XMLHttpRequest.send (async) send @ jquery.js:2 ajax @ jquery.js:2 loadData @ ware_index?sso_service_ticket=18255a1d77394f47bb7f3d1aba07cde7:708 (anonymous) @ ware_index?sso_service_ticket=18255a1d77394f47bb7f3d1aba07cde7:701 l @ jquery.js:2 fireWith @ jquery.js:2 ready @ jquery.js:2 A @ jquery.js:2
我一个页面有三个导航!用三个分页!怎么初始化
$(".submenu ul li").on('click', function() {
$(".submenu ul li").removeclass('active');
$(this).addclass('active')
var index = $(this).index();
types = $(this).attr('type');
if (types == '9') {
getifos.getmenuajax(pagesize);
getifos.pageajaxsum()
} else if (types == 'd') {
getifos.getmenuajax(pagesize);
getifos.pageajaxsum()
$("#page").html("");
$("#page").html("<div class='m-pagination'></div>");
}
$(".content .tab1").eq(index).removeclass('dis_none').siblings().addclass('dis_none')
})我这样写怎么只能出来一个分页!第二个导航里面内容怎么没有分页了
页面初始化时报这个错Cannot read property pageText of undefined是什么问题。