亚博体彩App

Product zone
产品专区
Baidu
sogou
currentPage+1//下一页 var countPage = maxpage//共多少页 //document.write("共"+countPage+"页  "); //设置上一页代码 var pagenav = ""; if(countPage>1 && currentPage>1) pagenav += "上一页 "; else pagenav += "上一页"; //循环 var num = 9; for(var i=1+(currentPage-1-(currentPage-1)%num) ; i<=(num+(currentPage-1-(currentPage-1)%num))&&(i<=countPage) ; i++){ if(currentPage==i) pagenav +=""+(i)+" "; else pagenav +=""+(i)+" "; } //设置下一页代码 if(countPage>1&¤tPage!=countPage) pagenav +="下一页 "; else pagenav +="下一页 "; var $page = $("#pagenav"); $page.empty(); $page.append(pagenav); }