vue3的onshow事件怎么没了?
网友回复
一直没有onshow事件,你那是小程序的事件。
vue3中有9个旧的生命周期钩子,我们可以在setup 方法中访问,vue3去掉了vue2中的 beforeCreate 和 created 事件 import { onMounted, onUpdated, onUnmounted } from 'vue' onBeforeMount onMounted onBeforeUpdate onUpdated onBeforeUnmount onUnmounted onActivated onDeactivated onErrorCaptured