分页

success: () => {
       this.tableDatas = this.rows.slice(0, 10);
   },
//分页
 changePage(page) {
    let pre = (page - 1)*10;
    let next = page * 10;
    this.tableDatas = this.rows.slice(pre, next);
 },
后端处理分页
不用分页,直接把页数发送过去可以,后端会返回总条数

 

posted @ 2020-04-23 13:48  queenDream  阅读(79)  评论(0编辑  收藏  举报