vue.js学习笔记(三)

1.标签内部传参数

   <table class="table table-striped table-bordered data-table " >
     <slot></slot>
   </table>

2.监测值发生变更

 对象监测方式:dataOrderBy属于监测的对象

 watch: {
    //如果排序方式发生变更重新修改逻辑
    dataOrderBy: {
      handler() {
           alert(this.dataOrderBy);    
      },
      deep: true
    }
  },

deep:true应该是监测对象数组使用

猜你喜欢

转载自blog.csdn.net/zhaofengdeng/article/details/85779532
今日推荐