HomeDocs
跳到主要内容

dlt.setNavigationBarTransparent

简介​

设置导航栏透明。

参数​

Object object

属性类型默认值必填说明
enableboolenfalse否设置导航栏透明;可取值:true 、false
successfunction否接口调用成功的回调函数
failfunction否接口调用失败的回调函数
completefunction否接口调用结束的回调函数(调用成功、失败都会执行)

示例代码​

// pages/index/index.js
Page({
onLoad() {
dlt.setNavigationBarTransparent({
enable: true,
success: function () {
console.log("成功");
},
fail: function () {
console.log("失败");
},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_private.mi@dlightek.com © 2024 MiniApp. All Rights Reserved.