设置导航栏可见性
Navigator.Visible(属性)
说明
可读写
设置导航栏隐藏或显示
返回值
Boolean
浏览器环境示例
javascript
async function getVisible() {
await instance.ready();
const app = instance.Application;
const navigator = await app.Window.Navigator
const visible = await navigator.Visible // 为true导航栏隐藏,为false导航栏显示
}
async function setVisible() {
await instance.ready();
const app = instance.Application;
const navigator = await app.Window.Navigator
navigator.Visible = false // 隐藏导航栏
navigator.Visible = true // 显示导航栏
}