中文EN
学科体系 学术体系 话语体系
'; output = output +"首页"; //output=output + "
  • "; //设置上一页代码 if(countPage>1&&currentPage!=0&&currentPage!=1) output = output + "上一页"; else if(countPage>1&&currentPage!=0&&currentPage==1) output = output + "上一页"; else output = output +"上一页"; //循环5个页码 var num = 7; var startPage=currentPage-2; if(startPage<0) startPage=0; var endpage=startPage+num; if(endpage>countPage)endpage=countPage; startPage=endpage-7; if(startPage<0) startPage=0; for(var i=startPage; i"+(i+1)+""; else if(i==0){ output = output +""+1+""; }else output = output +""+(i+1)+""; } //超过5个页码并且不是最后一页的前两页 //if (countPage>7 && currentPage <(countPage-3)) //{ // output = output +"..."; //} //跳转页面 //页码低于5个页面不显示跳转 //if (countPage>8 && currentPage <(countPage-4)){ //output = output +""+allPage+""+11+"" //} //设置下一页代码 if(countPage>1&&currentPage!=(countPage-1)) output = output +""; else output = output +""; if(countPage==1) output = output +"尾页"; else if(countPage>1) output = output +"尾页"; //跳转页面 //页码低于5个页面不显示跳转 if (countPage>1){ output = output + "
    跳转到
    " + ""; } return output; } document.write(outputPage());
热点文章