Microseer.getSystemInfo(object);
获取设备信息
object 参数说明
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| success | function | 是 | 接口调用成功 |
sucess 回调参数说明
| 属性 | 类型 | 说明 |
|---|---|---|
| model | string | 手机型号 |
| pixelRatio | string | 设备像素比 |
| width | string | 宽度 |
| height | string | 高度 |
| version | string | App版本号 |
| osVersion | string | 系统版本 |
| platform | string | 客户端类型 |
| udid | string | 设备唯一标识 |
eg:
let callBack = {
success:function(res){
console.log("设备型号:" + res.model);
console.log("设备像素比: " + res.pixelRatio);
console.log("容器宽度: " + res.width);
console.log("容器高度: " + res.height);
console.log("app版本: " + res.version);
console.log("系统版本: " + res.osVersion);
console.log("客户端类型:" + res.platform);
console.log("设备唯一标识:" + res.udid);
}
}
Microseer.getSystemInfo(callBack);