my.reLaunch

Close all current pages and jump to the specified page within the application.

Supported in basic library 1.4.0+

Sample Code

copy
my.reLaunch({
  url: '/page/index'
})

Parameters

NameTypeMandatoryDescription
urlStringYesPage path If the page is not a tabbar page, 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
successFunctionNoCallback function upon call success
failFunctionNoCallback function upon call failure
completeFunctionNoCallback function upon call completion (to be executed upon either call success or failure)