akbigdata-browser-detect
v1.0.7
Published
``` npm install 'akbigdata-browser-detect'; ``` ## 使用 ``` import BrowserDetect from 'akbigdata-browser-detect'; new BrowserDetect( { recommend: { chrome: 76, firefox: 76, ie: 11, 360: 56, uc: 11, kug
Downloads
2
Readme
安装
npm install 'akbigdata-browser-detect';
使用
import BrowserDetect from 'akbigdata-browser-detect';
new BrowserDetect(
{
recommend: {
chrome: 76,
firefox: 76,
ie: 11,
360: 56,
uc: 11,
kugou: 11
},
supported: {
firefox: 60,
mobile: false
},
unsupported: {
msie: 10,
chrome: 76.0,
firefox: '33',
mobile: true
}
}
);
配置说明
根据navigator.userAgent判断是否支持
supported 支持的浏览器最低版本
unsupported 不支持的浏览器最高版本
`chrome`
`firefox`
`msie`
`msedge`
`safari`
`yandexbrowser`
`android`
`ios`
`opera`
`samsungBrowser`
`phantom`
`blackberry`
`webos`
`silk`
`bada`
`tizen`
`seamonkey`
`sailfish`
`ucbrowser`
`qupzilla`
`vivaldi`
`sleipnir`
`kMeleon`
recommend 配置项
chrome: 76,
firefox: 76,
ie: 11,
360: 56,
uc: 11,
kugou: 11