HomeDocs
Skip to main content

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

PropertyTypeDefault ValueRequiredDescription
urlstringYesThe address of the destination page to navigate to.
successfunctionNoCallback function for a successful API call.
failfunctionNoCallback function for a failed API call.
completefunctionNoCallback function that is called when the API call is complete (whether successful or not).

Example Code

dlt.navigateTo({
url: 'pages/index/index',
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.