// 监听对象 data(){ return { a:{ b:10, c:20 } } }, watch:{ a:{ handler(a,b,c){ console.log(a) console.log(b) }, deep:true // 必须加这个属性 }
vue中watch深度监听
原文:https://www.cnblogs.com/qdwds/p/11706954.html