HomeDocs
跳到主要内容

dlt.showLoading

简介​

显示 loading 提示框

参数​

Object object​

属性类型默认值必填描述
titlestring否提示的内容
durationnumber3500否提示的展示时间
maskbooleantrue否是否显示透明蒙层,防止触摸穿透
successfunction否接口调用成功的回调函数
failfunction否接口调用失败的回调函数
completefunction否接口调用结束的回调函数(调用成功、失败都会执行)

示例代码​

dlt.showLoading({
success(res) {
console.log('success: ', res);
},
});
Privacy agreementDeveloper agreementcontact us: developer_private.mi@dlightek.com © 2024 MiniApp. All Rights Reserved.