
本文共 1145 字,大约阅读时间需要 3 分钟。
???????????
?Vue.js????????????????????????????????????????????????????
????
????????????????????????????HTML???????JavaScript?????????????????????????????????????????????????????????
?????????????????computed?????methods????????????????????????
?????????????????????????????????????????????????????????????????????????????????watch??????????
???
????Watcher??Vue.js????????????????????????????????????????????????????????????????????????
???????????
??????????????????????????????????????????????????????????????????????????
????
?????????????????
<el-pagination layout="prev, pager, next" @current-change="changePageNum" :current-page="currentPage" :page-size="pageSize" :total="total">
watch: { total() { if (this.total === (this.currentPage - 1) * this.pageSize && this.total !== 0) { this.currentPage -= 1; getDiscountList(this); // ?????? } } }
????
?????????????????????????????????????
????????????????????????????????????
发表评论
最新留言
关于作者
