# getNetworkStatus
接口描述:
- 获取当前设备网络信息
调用方式:
this.$bridge
.getNetworkStatus()
.then(res => {
this.$alert(res)
})
.catch(err => {
// 错误处理
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
- 返回描述:
Prop | Type | Default | Description |
---|---|---|---|
status | Number | 0 /1 | 状态码:0 不可用 /1 可用 |
type | String | 0 /1 | 是否为wireless network连接:0 非wireless network /1 wireless network |