if (this.commentNum % this.pagesize === 1) {//总条数%每页条数
let lastpage = (this.commentNum + this.pagesize - 1) / this.pagesize;//最后一页=(总条数+补齐最后一页)/每页条数
if (this.No === lastpage && this.No > 1) {//当前页===最后一页&&当前页>第一页
this.No -= 1;
}
}
table删除当前页返回上一页
猜你喜欢
转载自blog.csdn.net/weixin_43837268/article/details/85280072
今日推荐
周排行