摘要:
为什么组件中的 data 必须是一个函数,然后 return 一个对象,而 new Vue 实例里,data 可以直接是一个对象? // data data() { return { message: "子组件", childName:this.name } } // new Vue new Vue 阅读全文
posted @ 2020-01-03 13:59
走向大佬的路上
阅读(2864)
评论(0)
推荐(0)
浙公网安备 33010602011771号