your-is-android
v0.2.0
Published
your-is-android
Downloads
343
Readme
your-is-android
npm i your-is-android
isAndroid([userAgent])
判断当前是否安卓浏览器环境
import isAndroid from 'your-is-android'
// 当前环境
isAndroid()
// 手动传入
isAndroid('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36')