detect mobile site device type
npm install --save detect-mobile-device
import { isWeiXin } from 'detect-mobile-device';
console.log(isWeiXin());
// true
/**
* 获取 UA
* @return {string}
*/
export declare function getUserAgent(): string;
/**
* 判断是否是手机
* @return {boolean}
*/
export declare function isMobile(): boolean;
/**
* 判断是否是 android 设备
* @return {boolean}
*/
export declare function isAndroid(): boolean;
/**
* 判断是否 ios 设备
* @return {boolean}
*/
export declare function isIOS(): boolean;
/**
* 是否是 微信 设备
* @return {boolean}
*/
export declare function isWeiXin(): boolean;
/**
* 判断是否是 mobile 微信
* @return {boolean}
*/
export declare function isMWeiXin(): boolean;
/**
* 判断是否是手机qq
* @return {boolean}
*/
export declare function isMQQ(): boolean;
/**
* 判断是否是手机微博 UA
* @return {boolean}
*/
export declare function isMWeibo(): boolean;
/**
* 判断是否是江湖 daily App
*/
export declare function isJianghuDaily(): boolean;
/**
* 判断是否是飞书
*/
export declare function isLark(): boolean;
- fix: 修复 qq 新版本更新后导致判断
isMQQ
返回 false 的问题
- feat: 加入微信小程序
- feat: 加入飞书判断
- feat: 加入江湖 daily app 判断
- feat: init commit
MIT © jf3096