Mini Program Page Jump Related Interfaces

1.wx.navigateTo interface function: This interface function can retain the current page (the page is not released from memory before the jump, and wx.navigateBack can be used

interface function return), jump to the new page of the url set by the parameter, the parameters of this interface function are:

    url: The path of the page that needs to be jumped (relative path or absolute path can be used) This parameter must be set

    success: the callback function of the successful interface call, this parameter does not have to be set

   fail: The callback function of the failed interface call, this parameter is not required to be set

    complete: the callback function for the end of the interface call (whether successful or not), this parameter is not required to be set


2.wx.redirectTo interface function: This interface function can also jump to the page set by the url. Its parameters are the same as those of the wx.navigateTo interface. The difference from wx.navigateTo is that the page before the interface jumps will be closed. (You cannot use the wx.navigateBack interface to return to the page before the jump)

3.wx.navigateBack interface function: the function of this interface function closes the current page and returns to the previous page, this interface has no parameters


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324780800&siteId=291194637