# hideStatusBar ^7.8

是否隐藏导航条

# 请求参数

Prop Type Required Default Comment
hide Number Y N/A 0-显示状态栏,1-隐藏状态栏

# 接口调用示例

const params = {
  hide: 1
}
this.$bridge
  .hideStatusBar(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

1
2
3
4
5
6
7
8
9
10
11
12

# 返回参数

Prop Type Required Comment
code Number Y 返回状态, 0-成功, 1-失败
msg String Y 返回信息

# 接口返回示例

{
  code: 0,
  msg: '成功'
}
1
2
3
4
更新时间: 9/30/2022, 6:12:36 PM