摘要:
1、vue中的getCurrentInstance: 在Vue3中,getCurrentInstance()可以用来获取当前组件实例: 2、vue中使用mitt实现兄弟组件传值: 在vue3中$on,$off 和 $once 实例方法已被移除,组件实例不再实现事件触发接口,因此大家熟悉的EventB 阅读全文
posted @ 2022-11-03 13:43
爱写代码的藏獒
阅读(206)
评论(1)
推荐(0)
摘要:
1、Suspense组件:等待异步组件时渲染一些额外内容,让应用有更好的用户体验 例: <template> <div class="app"> <h3>我是App组件</h3> <Suspense> <template v-slot:default> <Child/> </template> <t 阅读全文
posted @ 2022-11-03 13:37
爱写代码的藏獒
阅读(64)
评论(0)
推荐(0)

浙公网安备 33010602011771号