1.0.0 • Published 7 years ago
mars-detect v1.0.0
mars-detect 
系统和浏览器 ua 检测
安装
$ npm install mars-detect --save
使用方法
import detect from 'mars-detect';
console.log(detect.os.ios) // true/false
文档
对外暴露一个如下Object
{
os: {
[ios|android|wp]: true|false,
version: '9.6.1'
},
browser: {
[weixin|weibo|qq|webkit|ie|safari]: true|false,
version: ''
}
}
1.0.0
7 years ago