当前位置:   article > 正文

分页方法_pageindex什么意思

pageindex什么意思

引用块内容searchmethod:搜索方法 url:传一个地址 pageid:当前页码listid:下拉参数pagename:网页文件名pageindex:页面索引totalcount:总页数

function GetDataByPage(searchmethod, url, pageid, listid, pagename, pageindex, totalcount) {
    laypage({
        cont: pageid,//分页控件的ID
        pages: totalcount, //总页数
        curr: pageindex, //当前页
        jump: function (e) {
            //进行分页
            if (pageindex != e.curr) {
                $.ajax({
                    url: url + '&' + pagename + '=' + e.curr,
                    type: "get",
                    async: false,
                    cache: false,
                    dataType: "json",
                    error: function (ex) { $('#' + pageid).hide(); $('#' + listid).html(ShowNoDate("温馨提示:暂时没有任何数据")); },
                    success: function (data) {
                        if (data != null && data.rc == "0" && data.totalpagecount > 0) {
                            $('#' + pageid).show();
                            searchmethod(data);
                            GetDataByPage(searchmethod, url, pageid, listid, pagename, e.curr, data.totalpagecount);
                        }
                        else if (data != null && data.rc == "401") {
                            LoginLenovo($('#hiddenurl').val());
                        }
                        else {
                            $('#' + pageid).hide();
                            $('#' + listid).html(ShowNoDate("温馨提示:暂时没有任何数据"));
                        }
                    }
                });
            }
        }
    });
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/725220
推荐阅读
相关标签
  

闽ICP备14008679号