json数组更新
this.todos=[{operateFlag:'1',sum:2}]
this.todos[0] = Object.assign( { } , this.todos[0] , {'operateFlag':2})
this.$set(this.todos,index,this.todos[0]);
数组更新
this.$set(this.todos,0,'a');
对象
this.$set(this.obj,'key',value);
json数组更新
this.todos=[{operateFlag:'1',sum:2}]
this.todos[0] = Object.assign( { } , this.todos[0] , {'operateFlag':2})
this.$set(this.todos,index,this.todos[0]);
数组更新
this.$set(this.todos,0,'a');
对象
this.$set(this.obj,'key',value);