dayTop:function(val){
this.deliveryTimeVal=val;
console.log(this.deliveryTimeVal);
},
子组件通过props接收到deliveryTimeVal之后写的watch事件
watch: {
deliveryTimeVal: function (val) {
console.log(this.deliveryTimeVal);
}
但是这个watch事件只能执行一次,是什么地方有问题?请大牛指导一下,谢谢
props 是单向的,所以,这个问题,你要先说明一下,你是在哪里改变 deliveryTimeVal的值