Object mc.getEnterOptionsSync()

获取本次启动时的参数。如果当前是第一次启动,则返回值与 App.onLaunch 的回调参数一致;如果当前是后台拉起启动,则返回值与 App.onShow 一致。

返回值

类型 说明
Object 参考 mc.onAppShow() 回调参数说明

示例代码:

const option = mc.getEnterOptionsSync();

results matching ""

    No results matching ""

    results matching ""

      No results matching ""