1.0.2 • Published 5 years ago

@lweb-utils/device v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

@lweb-utils/device

设备相关工具函数

npm i @lweb-utils/device --save

1. getExplore

getExplore();

获取当前的浏览器信息。

参数

返回值

(string): 浏览器信息,如chrome: 86.0.4240.198

示例

const browser = getExplore();

2. getOS

getOS();

获取当前的操作系统信息。

参数

返回值

(string): 移动端操作系统,如ios, android, windowsPhone

示例

const os = getOS();
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago