会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
elaine_mz
博客园
首页
新随笔
联系
订阅
管理
2022年7月19日
Vue3 父组件调用子组件方法 defineExpose
摘要: 父组件代码: <template> <div class="home"> <HelloWorld ref="childRef"></HelloWorld> <button @click="getChild">触发子组件方法</button> </div> </template> <script> i
阅读全文
posted @ 2022-07-19 10:08 elaine_mz
阅读(3986)
评论(0)
推荐(0)
编辑
公告