pagination插件使用例子
//筛选 screen:function(){ // 列表 getAjax('/school/category', {category_id:this.ids,page:1,sort:this.hot}, "GET").then((res) => { if (res.code == 200) { //console.log(res) //获取数据 this.listdata=res.data.course_list.data //面包屑 //this.crumbs= res.data.ll[0].name+'-'+res.data.ll[1].name; //分页 $('.paging').pagination({ pageCount: res.data.course_list.last_page, jump: true, isHide: true, callback: (api)=> { getAjax('/school/category', {category_id:this.ids,page:api.getCurrent(),sort:this.hot}, "GET").then((res) => { if (res.code == 200) { this.listdata=res.data.course_list.data }else{ } }) } }); } else { console.log("失败") } }) }