數(shù)組:
通過經(jīng)過vue二次封裝的push,unshift,pop,shift,sort,reverse,splice可以實(shí)現(xiàn)數(shù)組中數(shù)據(jù)的響應(yīng)式,通過索引增刪改查vue是不響應(yīng)的。或者使用vue.set()/vm.$set()
對象:
通過vue.set()/vm.$set()
數(shù)組:
通過經(jīng)過vue二次封裝的push,unshift,pop,shift,sort,reverse,splice可以實(shí)現(xiàn)數(shù)組中數(shù)據(jù)的響應(yīng)式,通過索引增刪改查vue是不響應(yīng)的。或者使用vue.set()/vm.$set()
對象:
通過vue.set()/vm.$set()