watch 監聽數組的變化

使用splice 或 數組

this.$set()
參數1:目標元素
參數2:屬性名稱/數組下標
參數3: value值
例如
this.$set(this.arr,0,100)
this.$set(this.obj,"sex","男")
相關文章
相關標籤/搜索