SinkDark/myblog/static/js/page2.js
2024-09-17 17:30:58 +08:00

17 lines
271 B
JavaScript

<!--
var pager = new ETNGpager('list','list2',24,10);//24为每页显示条数。10为导航显示菜单数
var curP = 1;
page()
function page(i){
curP =(curP>pager.cntP)?1:curP;
if(i){
curP = n =i;
}else{
n = curP++;
}
pager.curP = (n>pager.cntP)?pager.cntP:n;
pager.create();
}
//-->