Universal JSAPIs for mini programs
The following JSAPIs are provided for the Alipay+ Cross-border Transport mini program.
JSAPI | Description |
Synchronously obtains the mini program app ID. | |
Synchronously obtains the mobile phone system information. | |
Creates a canvas drawing context. The drawing context applies only to the canvas component of the corresponding canvasId. | |
Returns a SelectorQuery object instance for selecting page nodes or obtaining node information. | |
Retains the current page and navigates to a specific page within the app. | |
Closes the current page and returns to the previous page or multiple-level page. | |
Closes the current page and opens the specified page. | |
Jumps to other mini programs. | |
Obtains the user's geographical location. | |
Obtains the user information authorization and acquires the authorization code (authCode). Note: First, Alipay+ obtains authCode through this API by specifying scope as | |
Synchronously saves data to the local cache. | |
Synchronously retrieves contents of the specified key from the local cache. | |
Synchronously deletes the specified key from the local cache. | |
Displays weak hints. | |
Hides weak hints. | |
Displays a loading prompt box. | |
Hides the loading prompt box. | |
Initiates an HTTPS network request. | |
Listens for user-initiated screenshot events. | |
Removes the listener function for user screenshot events. | |
Gets the screen brightness. | |
Sets the screen brightness. | |
Hides the button on the title bar that returns to the mini program home page. | |
Sets the navigation bar title and style (foreground color, background color, bottom border color, upper left corner logo image). | |
Determines whether mini programs, input parameters, return values, components, properties, and so on, are available in the current version. |