dlt.exit
Introduction
Exit the mini program.
Parameters
Object object
Property | Type | Default | Required | Description |
---|---|---|---|---|
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 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) {},
});
},
});