本例使用的版本为jquery.pagination-1.2.6.js

    $("#id").page({
        showInfo: false,
        showJump: false,
        showPageSizes: true,
        firstBtnText: '首页',
        lastBtnText: '尾页',
        prevBtnText: '上一页',
        nextBtnText: '下一页',
        jumpBtnText:'跳转',
        infoFormat: '{start} ~ {end}条,共{total}条',
        pageSize:20,
        remote: {
            pageIndexName: 'page',     //请求参数,当前页数,索引从0开始
            pageSizeName: 'rows',       //请求参数,每页数量
            url: webPath+'/attention/jigou',
            params:{
                userId:'1'
            },
            success: function (data, pageIndex) {
                console.log(data);
            },
        }
     });

 

相关文章:

  • 2021-12-26
  • 2021-12-28
  • 2021-11-30
  • 2021-06-08
  • 2022-02-28
  • 2021-12-09
猜你喜欢
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
相关资源
相似解决方案