分页

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);
 },
后端处理分页
不用分页,直接把页数发送过去可以,后端会返回总条数
原文地址:https://www.cnblogs.com/queenDream/p/12760323.html