dlt.navigateTo
Introduction
Navigates from the current page to a specified page within the application.
Usage Limitations
- You can use dlt.navigateBack to return to the previous page.
- In a mini-program, the page stack can have a maximum of ten layers.
Parameters
Object object
Property | Type | Default Value | Required | Description |
---|---|---|---|---|
url | string | Yes | The address of the destination page to navigate to. | |
success | function | No | Callback function for a successful API call. | |
fail | function | No | Callback function for a failed API call. | |
complete | function | No | Callback function that is called when the API call is complete (whether successful or not). |
Example Code
dlt.navigateTo({
url: 'pages/index/index',
});