摘要: 第一步: 在子组件注册一个方法 比如 showSure(){ this.show=true console.log('成功调用子组件方法') }, 然后再父组件中 <button @click="getChild">点击调用子组件</button>3 <!-- 子组件注册个ref --> <toas 阅读全文
posted @ 2020-09-29 09:52 一颗老白葱 阅读(4271) 评论(0) 推荐(0)