watch: {
dat: {
handler(newValue,oldValue) {
//...
},
deep: true
}
注:prop由父组件改变值时,new和old值相等
watch: {
dat: {
handler(newValue,oldValue) {
//...
},
deep: true
}
注:prop由父组件改变值时,new和old值相等