// 更新當前頁碼 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.uj5u.com/qiye/36905.html
標籤:JavaScript
