my.openUrl
Open the url in the default browser of the Device or open other app in the device.
Sample Code
copy
my.call(
'openUrl',
{url:'https://ant.design/index-cn'}
)
Parameters
Property | Type | Required | Description |
url | String | Yes | url of the h5 page or scheme of the app. |
complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |
Complete Callback Function
The incoming parameter is of the Object type with the following attributes:
Property | Type | Description |
code | String | result code. |
message | String | result message. |
Result Code
code | Description |
0 | Successfully open the web browser or apps. |
-1000 | Invaild Request Data. |
-1001 | The url can not be open by system. |