vue.js怎么获取props的值?
export default {props: ['msg'],ready () {this.$watch('msg', function(newVal, oldVal){console.log('newVal');//这里再感受下值拿到了没});}}感谢分享https://segmentfault....
·
export default {
props: ['msg'],
ready () {
this.$watch('msg', function(newVal, oldVal){
console.log('newVal');//这里再感受下值拿到了没
});
}
}
感谢分享https://segmentfault.com/q/1010000006089408
更多推荐
已为社区贡献74条内容
所有评论(0)