摘要:
1.父→子:通过props传递数据 子组件:在子组件内通过props接收父组件数据 父组件:在子组件调用标签中传入父组件数据 <world :parentMsg="parentMsg"></world> 2.子→父:通过事件发送数据 子组件:通过$emit发送自定义事件fire和子组件数据child 阅读全文
posted @ 2019-01-04 15:53
肥嘟嘟啊左卫门
阅读(110)
评论(0)
推荐(0)
浙公网安备 33010602011771号