watch 监听数组的变化

使用splice 或 数组

this.$set()
参数1:目标元素
参数2:属性名称/数组下标
参数3: value值
例如
this.$set(this.arr,0,100)
this.$set(this.obj,"sex","男")
相关文章
相关标签/搜索