watch:{
"xx":{
handler:function(newValue,oldValue){
console.log(newValue,oldValue)
},
immediate: true, // 首次绑定值 是否 触发
deep:true // 深度监听
}
}
watch:{
xx(newValue,oldValue){
console.log(newValue,oldValue)
}
}
--- 笔记随时更新---