摘要: 方案一:通过ref直接调用子组件的方法 <template> <div> <Button @click="handleClick">点击调用子组件方法</Button> <Child ref="child"/> </div> </template> <script> import Child fro 阅读全文
posted @ 2022-09-08 11:47 RHCHIK 阅读(350) 评论(0) 推荐(0) 编辑