父组件执行子组件的事件,子组件执行父组件的事件
父执子
在子组件上标注ref="childComponent"
this.$refs.childComponent.getZoneQuery();
子执父
this.$parent.xxx(res.data.result, '3', string)
本文来自博客园,作者:熬夜的布偶猫#,转载请注明原文链接:https://www.cnblogs.com/prince11/p/18668761
父执子
在子组件上标注ref="childComponent"
this.$refs.childComponent.getZoneQuery();
子执父
this.$parent.xxx(res.data.result, '3', string)
本文来自博客园,作者:熬夜的布偶猫#,转载请注明原文链接:https://www.cnblogs.com/prince11/p/18668761