▸ navigateToMiniProgram(options): Promise<void>
description Opens another Mini Program
example
Code
Parameters
| Name | Type | Description |
|---|---|---|
options | NavigateToMiniProgramOptions | Navigate to options |
Returns
Promise<void>
Interface: NavigateToMiniProgramOptions
| Name | Type | Description |
|---|---|---|
| type? | NavigationMPType | The type of the Mini Program to be opened. It is valid when target="miniProgram" |
| appId | string | The appId of the Mini Program to be opened |
| rev? | string | The rev of the Mini Program to be opened. It is valid when target="miniProgram" |
| envVersion? | NavigationMPChannel | The channel of the Mini Program to be opened. It is valid when target="miniProgram" |
| extraData? | Object | The data that needs to be passed to the target Mini Program. The target Mini Program can obtain this data from App.onLaunch and App.onShow |
| path? | string | The path of the page to be opened. If it is empty, the homepage is opened. Content following the question mark (?) in the path becomes a query |
| mpModalType? | "replace" | description behavior type of the current app after navigateToMiniProgram is called**remark** supported jssdk >= 4.3.0. only support "replace" by now. With this type, the app where navigateToMiniProgram is called will be closed |
此页面是否有帮助?
Last modified on