@a1motion/detect 中文文档教程
detect
浏览器/操作系统检测
Install
yarn add @a1motion/detect
Usage
import detect from "@a1motion/detect";
detect = {
ie: boolean;
safari: boolean;
firefox: boolean;
opera: boolean;
chrome: boolean;
mac: boolean;
win: boolean;
ios: boolean;
android: boolean;
linux: boolean;
desktop: boolean;
mobile: boolean;
}
detect
Browser/OS detections
Install
yarn add @a1motion/detect
Usage
import detect from "@a1motion/detect";
detect = {
ie: boolean;
safari: boolean;
firefox: boolean;
opera: boolean;
chrome: boolean;
mac: boolean;
win: boolean;
ios: boolean;
android: boolean;
linux: boolean;
desktop: boolean;
mobile: boolean;
}