0


在uniapp vue3 setup语法糖中调用onLoad、onShow等生命周期

import{ onLoad }from"@dcloudio/uni-app"onLoad(()=>{
        console.log(11)})

@dcloudio/uni-app

导出
可导出项:
在这里插入图片描述

    formatAppLog
    formatH5Log
    getCurrentSubNVue
    getSsrGlobalData
    initUtsProxyClass
    initUtsProxyFunction
    onAddToFavorites
    onBackPress
    onError
    onHide
    onInit
    onLaunch
    onLoad
    onNavigationBarButtonTap
    onNavigationBarSearchInputChanged
    onNavigationBarSearchInputClicked
    onNavigationBarSearchInputConfirmed
    onNavigationBarSearchInputFocusChanged
    onPageNotFound
    onPageScroll
    onPullDownRefresh
    onReachBottom
    onReady
    onResize
    onSaveExitState
    onShareAppMessage
    onShareTimeline
    onShow
    onTabItemTap
    onThemeChange
    onUnhandledRejection
    onUnload
    requireNativePlugin
    resolveEasycom
    shallowSsrRef
    ssrRef

本文转载自: https://blog.csdn.net/lhkuxia/article/details/128052330
版权归原作者 苦夏木禾 所有, 如有侵权,请联系我们删除。

“在uniapp vue3 setup语法糖中调用onLoad、onShow等生命周期”的评论:

还没有评论