简体中文
获取本次启动时的参数。返回值与App.onLaunch的回调参数一致
类型 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
OnLaunchOptions | ||||||||||
|
Android | iOS | web |
---|---|---|
3.91 | 4.11 | 4.0 |
Template
Script
<template>
<page-head title="getLaunchOptionsSync"></page-head>
<view class="uni-padding-wrap">
<button @click="getLaunchOptionsSync">getLaunchOptionsSync</button>
<view v-if="launchOptionsPath.length > 0" class="uni-common-mt">
<text>应用启动路径:</text>
<text style="margin-top: 5px">{{ launchOptionsPath }}</text>
</view>
</view>
</template>
名称 | 类型 | 必备 | 默认值 | 描述 |
---|---|---|---|---|
errMsg | string | 是 | - | 错误信息 |