watch:{
'data.status':{
handler: function(newVal,oldVal){
//要执行的任务
},
deep:true // 深度观察
}
}
Vue中watch 的深度监听
最新推荐文章于 2025-06-26 11:36:46 发布