dlt.exitMiniProgram
Introduction
Exit the current mini program. It must be called after a user action.
Usage Restrictions
Supported by the base library version 4.0.0
or higher.
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({
handleTap() {
dlt.exitMiniProgram({
success: function (res) {},
fail: function (res) {},
complete: function (res) {},
});
},
});