export const isiOS = () => { // 判断是否ios设备
let u = navigator.userAgent;
let iOs = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
return iOs;
}
export const isWeixin = () => { // 判断是否微信浏览器环境
let u = navigator.userAgent.toLowerCase();
let wx = u.indexOf('micromessenger') !== -1;
return wx;
}
判断是否ios设备,判断是否微信浏览器环境
最新推荐文章于 2024-07-14 03:40:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)