自定义上一页的的js
var page= $("tr[tridx=0]","div.content-container").children().eq(0).html();
if(page==0)
{
this.setEnable(false);
}
else
{
window.location.href="http://localhost:8075/webroot/decision/view/report?viewlet=库存表2.cpt&page="+page;
下一页的js
var page= $("tr[tridx=0]","div.content-container").children().eq(1).html();
var total=$("tr[tridx=0]","div.content-container").children().eq(2).html();
if(parseInt(page) > parseInt(total))
{ this.setEnable(false); }
else
{
window.location.href="http://localhost:8075/webroot/decision/view/report?viewlet=库存表2.cpt&page="+page;
}
点上一页的时候提示
点下一页的时候直接空白
是不是路径有问题啊
更多推荐
html上一页 下一页,自定义上一页,下一页的js
发布评论