## uni.getNetworkType(OBJECT)
获取网络类型。
**OBJECT 参数说明**
![](https://box.kancloud.cn/9bb53e5492416295a4e5d68705ad0496_862x168.png)
**success 返回参数说明**
![](https://box.kancloud.cn/cd522afabfb9d8f59a6406ad943e0488_863x90.png)
**networkType 有效值**
![](https://box.kancloud.cn/a4da7ca94d245269d12577c05af4112b_863x286.png)
**示例**
```
uni.getNetworkType({
success: function (res) {
console.log(res.networkType);
}
});
```
## uni.onNetworkStatusChange(CALLBACK)
监听网络状态变化。
**CALLBACK 返回参数**
![](https://box.kancloud.cn/051668a90495b1220af8595a39835443_859x126.png)
**示例**
```
uni.onNetworkStatusChange(function (res) {
console.log(res.isConnected);
console.log(res.networkType);
});
```