HomeDocs
Skip to main content

dlt.exit

Introduction

Exit the mini program.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
successfunctionNoCallback function for a successful API call.
failfunctionNoCallback function for a failed API call.
completefunctionNoCallback function that will be executed when the API call ends (both success and failure).

Sample Code

// pages/index/index.js

Page({
exit() {
dlt.exit({
success: function (res) {},
fail: function (res) {},
complete: function (res) {},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.