标签:nta computed compute pre new ted console container hand
data: {
datas: {
a: 77,
b: 86
}
}
deep:true
深层次监听 ‘datas‘:{
handler:function(newVal){
console.log(this.datas);
},
deep:true
}
‘datas.a‘:{
handler:function(newVal){
console.log(this.datas);
}
}
watch: {
a(newVal){
console.log(this.datas);
}
},
computed: {
a:function(){
return this.datas.a;
}
}
标签:nta computed compute pre new ted console container hand
原文地址:https://www.cnblogs.com/Syinho/p/14286781.html