首页 > 其他 > 详细

删除最后一页的最后一条数据,没回到前一页

时间:2020-07-17 19:48:18      阅读:69      评论:0      收藏:0      [点我收藏+]
// 更新当前页码
            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)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!