HomeDocs
跳到主要内容

dlt.cancelBackExitInterceptor

简介​

取消已注册但未使用的拦截器

参数​

Object object

属性类型默认值必填说明
successfunction否接口调用成功的回调函数
failfunction否接口调用失败的回调函数
completefunction否接口调用结束的回调函数(调用成功、失败都会执行)

示例代码​

Page({
onLoad() {
dlt.cancelBackExitInterceptor({
success: function (res) {
// 取消成功
},
fail: function (res) {
// 失败
},
complete: function (res) {},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_private.mi@dlightek.com © 2024 MiniApp. All Rights Reserved.