删除最后一页的最后一条数据,没回到前一页
时间:2020-07-17 19:48:18
收藏:0
阅读:69
// 更新当前页码 let totalPage = Math.ceil((this.totalNum - 1)/this.pageSize); let currentPage = this.currentPage > totalPage ? totalPage : this.currentPage; this.currentPage = this.currentPage < 1 ? 1 : currentPage;
参考博客:https://www.cnblogs.com/duanzhenzhen/p/12565911.html
原文:https://www.cnblogs.com/share-record/p/13331983.html
评论(0)