vue中父子组件通信



子组件触发sendinfo事件,调用父组件函数getinfo,其中key获得父级的自定义的字段,value对应的是子组件传递过来的数据

猜你喜欢

转载自blog.csdn.net/aliven1/article/details/80746964