my.redirectTo
Close the current page and jump to the specified page within the application.
Sample Code
copy
my.redirectTo({
url: 'new_page?count=100'
})
Parameters
Property | Type | Required | Description |
url | String | Yes | The application for the jumping does not include the destination page path of the tabBar. The path can be followed by parameters. Rules for the parameters: The path and parameter are separated with ? , the parameter key and the parameter value are connected with = , and different parameters must be separated with & , such as path?key1=value1&key2=value2 . |
success | Function | No | Callback function upon call success. |
fail | Function | No | Callback function upon call failure. |
complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |