摘要: 方案一:通过ref直接调用子组件的方法; //父组件中 <template> <div> <Button @click="handleClick">点击调用子组件方法</Button> <Child ref="child"/> </div> </template> <script> import C 阅读全文
posted @ 2022-03-01 09:58 墨晓溪2288 阅读(172) 评论(0) 推荐(0) 编辑