data(){
return {
a : {
b: "测试",
c: 10,
d: 20,
e: 20,
f: 40
}
}
},
computed:{
"a.b": function(){
return this.a.c + this.a.d + this.a.e + this.a.f;
}
}
请问下,如果对一个对象的属性进行监控呢?如上写法,当对象属性c、d、e、f变化时无法触发计算,要怎么写才对呢?