vue 实战问题-watch 数组或者对象 - 蒲公英tt - 博客园
2017年4月7日 - vue 实战问题-watch 数组或者对象 1、普通的watch data() { return { frontPoints: 0 } }, watch: { frontPoints(newValue, oldValue) { console.log(...
vue2 watch引用类型 失败原因 - 吃个石头 - 博客园
2017年5月7日 - new Vue({ el: '#t1', data: { a: { b: 1, c: 2 }, }, methods: { ch() { this.a.d=5 //不打印ok 原理是watch只watch挂在data中的数据,...