写一个vue的分页

参考 https://www.cnblogs.com/yuqing6/p/7061647.html

但是

data(){
      return {
        current: this.currentPage
      }
    },这种写法不会根据currentpage变化而改变

应该用compute  或者不要此属性直接在外部改变页数就行

猜你喜欢

转载自blog.csdn.net/weixin_42176561/article/details/89554830
今日推荐