let ua = navigator.userAgent.toLowerCase();
let isWeixin = ua.indexOf(‘micromessenger‘) != -1;
if (isWeixin) {
return true;
}else{
return false;
}
判断当前页面是否在微信浏览器中打开
最新推荐文章于 2023-12-19 15:20:36 发布
let ua = navigator.userAgent.toLowerCase();
let isWeixin = ua.indexOf(‘micromessenger‘) != -1;
if (isWeixin) {
return true;
}else{
return false;
}