# wx.reLaunch(Object object)

Start from base library version 1.1.0. Please remaining backward compatible.

with Promise style call: Supported

Need page permissions: Mini Programs cannot call this interface from a plugin page, and plugins cannot call the interface from the plugins page

Mini Program plugin: Support, need to Mini Program base library version no less than 2.3.1

When used in Mini Programs plug-ins, can only be called from the page of the current plug-in

Close all pages and open to a page in the app

# parameter

# Object object

attribute type Default values Required Introductions
url string yes Page paths within the application that you want to jump to (Code packet path), can be followed by a path with parameters. Between parameters and pathsThe parameter key is connected with the parameter value by =, and the different parameters are separated by &Such as 'pathkey=value&key2=value2'
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)

# sample code

  url: 'testid=1'
// test
  onLoad (option) {