//默认pageNum:1 pageSize:10
// 后台返回所有数据
this.totalList = res.data
const list = this.totalList.slice(
(this.pageNum-1 * this.pageSize),this.pageNum*this.pageSize
)
前端分页公式
最新推荐文章于 2023-12-08 17:35:50 发布
//默认pageNum:1 pageSize:10
// 后台返回所有数据
this.totalList = res.data
const list = this.totalList.slice(
(this.pageNum-1 * this.pageSize),this.pageNum*this.pageSize
)