1. 设置对象或数组的值:Vue.set(target,key,value) ;
2.删除对象或数组中元素: Vue.delete ( target,key) ;
this.array[0].show = true;
this.array.splice(indexOfItem, 1, newElement)
var tempArray = this.array;
tempArray[0].show = true;
this.array = tempArray;
可以触发视图更新:
push()/pop()/shift()/unshift()/splice() /sort()/reverse()