标签:his not function cli efs UNC v-on child eth
1.父组件
<button v-on:click="notify">广播事件</button>
<juesefenpei ref="child"></juesefenpei>
methods: {
notify: function () {
this.$refs.child.parentMsg(‘boonook‘);
},
}
2.子组件
methods:{
parentMsg: function (a) {
alert(a);
}
},
标签:his not function cli efs UNC v-on child eth
原文地址:https://www.cnblogs.com/boonook/p/9024682.html