子组件向父组件传值this.$emit() 狗子吆西 2022-07-20 85 阅读1分钟 # 解决方案:this.$emit()方法 StepTips: 1、子组件设置emit()触发事件 2、父组件使用v-on(@onclik)监听组件的自定义事件 3、获得值