网站首页
编程语言
数据库
系统相关
其他分享
编程问答
callChildMethod
2024-10-11
vue3父组件调用子组件方法的大坑
父组件:<template><ChildComponentref="callChildMethod"/></template><scriptsetup>import{ref}from'vue';importChildComponentfrom'./ChildComponent.vue';constcallChildMethod=ref();