Vue 调用 子路由/子组件 内的方法

参考网址:https://blog.csdn.net/a5534789/article/details/53415201 Demo: 1、新建一个空的vue对象,命名为eventHub; 2、在父页面 hsi.vue 使用 this. root.eventHub. r o o t . e v e n t H u b . emit(‘function1’,’parame’); 随意声明一个方法 fu
相关文章
相关标签/搜索