js 计算有多少个分页

js 计算有多少个分页

this.total = Math.ceil(res.total / this.pageSize)
// res.total 总数量  this.pageSize // 每页几条
// Math.ceil()函数,进1法取整

猜你喜欢

转载自blog.csdn.net/qq706352062/article/details/109647173
今日推荐