摘要: Vue项目中如何在父组件中直接调用子组件的方法: 方案一:通过ref直接调用子组件的方法; //父组件中 <template> <div> <Button @click="handleClick">点击调用子组件方法</Button> <Child ref="child"/> </div> </te 阅读全文
posted @ 2019-05-07 15:38 雨中愚 阅读(249152) 评论(10) 推荐(6)