Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Object mc.getLaunchOptionsSync()

获取应用启动时的参数。与 App.onLaunch 的回调参数一致。

返回值

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

示例代码:

const option = mc.getLaunchOptionsSync();