• 当前标签:翻页

程序开发 paging.js插件翻页

在需要添加分页的地方添加以下html代码: <div id="page"></div> js代码: $("#page").paging({         pageNo: that.page, // 传入初始         totalPage: that.totalPage, //传入总页数         totalSize: that.pageSize,         callback: function (num) {             // 回调页数             // console.log(num)             $.ajax({                 url: `{:url('api/Details/getTeamcaselist')}?id=${that.id}`,                 type: "post",                 data: {                     page: num                 },                 success: function (res) {                     // console.log(res)                     if (res.status == 200) {                         that.dList = res.res;                     } else {                         alert('没有数据');                     }                 }             })         }     })

2018-01-16 10:42:45 58 0 0
阅读详情
  • 1
前往