先在父组件里面定义一个自定义方法,比如让msg等于我穿过来的data,括号里的data是形参是子组件穿过来的参数 然后直接用 this.$listeners.send(this.msg)把需要的参数传过去