vue.js怎么获取props的值?

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

感谢分享https://segmentfault.com/q/1010000006089408

猜你喜欢

转载自blog.csdn.net/qq_32963841/article/details/84561489