摘要: Vue中子组件watch监听props中父组件对象的变化时,需要注意的点: 案例: 父组件对象 test:{ id = 1, name:"小明"} 修改test中的name =》 this.test.name = "小强" 2. 子组件watch监听test 无法感知 ,原因是修改的对象的值,而不是 阅读全文
posted @ 2020-04-25 10:33 Steven徐 阅读(14999) 评论(2) 推荐(2)