用于监听变量的变化
watch: {
'a': function(val, oldVal) {
console.log(val, oldVal);
}
}
watch: {
'a': function(val, oldVal) {
console.log(val, oldVal);
}
}
2016-08-06
举报