watch monitor changes in the array

Use splice or 

this.$set()
Parameter 1: Target element
Parameter 2: attribute name / array subscript
Parameter 3: value Value
E.g
this.$set(this.arr,0,100)
this.$set(this.obj,"sex","男")

Guess you like

Origin www.cnblogs.com/qing-xrr/p/11248610.html