root 和 parent 都能够实现访问父组件的属性的方法,两者的区别在于,如果 ... Vue.component('root-obj', { data() { return { msg: '我是子组件' } ...
確定! 回上一頁