May 19, 2021 WeChat Mini Program Development Document
Close the current page and jump to a page within the app. However, jumping to the tabbar page is not allowed.
Property | Type | The default | Required | Description |
---|---|---|---|---|
Url | string | Is |
The path (code package path) of the non-tabBar page within the app that needs to be jumped, and the path can be followed by parameters.
The parameters are separated from the
=
?
the keys are connected to the parameter values, and the different parameters are separated by the values of the parameters, such as 'path?key=value=value=key2=value2'
&
|
|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
wx.redirectTo({
url: 'test?id=1'
})