$ npm install universal-device
System info.
$ npm install universal-device --save
// How to use it in quickapp
// import { platform, appName, screenWidth, screenHeight, appVersion } from 'universal-device/lib/quickapp;
import { platform, appName, screenWidth, screenHeight, appVersion } from 'universal-device';
appName: stringapp name or browser name
appVersion: stringapp version or browser version info
platform: stringplatform: 'Android'、'iOS'、'MacIntel', etc.
screenWidth: numberScreen width in px
screenHeight: numberScreen height in px
devicePixelRatio: numberThe ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.
© 2010 - cnpmjs.org x YWFE | Home | YWFE