vue父组件调用子组件的方法

1.父组件调用子组件的方法 在父组件页面中显示子组件的标签中 添加属性ref=“namexxx”web 在方法里面用 this.$refs.child.自组件方法名svg 下面看列子this 父组件 <div @click="showChild">点击</div> <div> <component :is='test' ref="child"></component>
相关文章
相关标签/搜索