● getSystemInfo 的同步版本getSystemInfoSync
分类:系统
是否支持H5:不支持
参数
返回值
Object res
| 属性 | 类型 | 说明 |
|---|---|---|
| brand | string | 设备品牌 |
| model | string | 设备型号 |
| platform | string | 客户端平台 |
| pixelRatio | number | 设备像素比 |
| screenWidth | number | 屏幕宽度,单位px |
| screenHeight | number | 屏幕高度,单位px |
| windowWidth | number | 可使用窗口宽度,单位px |
| windowHeight | number | 可使用窗口高度,单位px |
| statusBarHeight | number | 状态栏的高度,单位px |
| language | number | 微信设置的语言 |
| version | string | 微信版本号 |
| system | string | 操作系统及版本 |
| platform | string | 客户端平台(android、mac) |
| SDKVersion | string | 客户端基础库版本 |
| channel | string | 渠道号 |
| scheme | string | scheme |
| appId | string | appId |
| errMsg | string | 错误信息 |
调用示例
原生
wx.getSystemInfoSync();