export default {
props: ['msg'],
ready () {
this.$watch('msg', function(newVal, oldVal){
console.log('newVal');//这里再感受下值拿到了没
});
}
}
感谢分享https://segmentfault.com/q/1010000006089408
export default {
props: ['msg'],
ready () {
this.$watch('msg', function(newVal, oldVal){
console.log('newVal');//这里再感受下值拿到了没
});
}
}
感谢分享https://segmentfault.com/q/1010000006089408