Function: getDevice

getDevice(): DeviceInfo

获取移动设备信息,如是否是iOS,android等

Returns

DeviceInfo

设备信息对象

Example

const device = getDevice();
console.log(device);
// => {
//   androidChrome: false,
//   ipad: false,
//   iphone: true,
//   android: false,
//   ios: true,
//   os: "ios",
//   osVersion: "9.1",
//   webView: null
// }
ON THIS PAGE