function isWeiXinClient() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i)=="micromessenger") {
return true;
} else {
return false;
}
}
// 测试
alert(isWeiXinClient());
function isWeiXinClient() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i)=="micromessenger") {
return true;
} else {
return false;
}
}
// 测试
alert(isWeiXinClient());
本文标题:判断是否为微信浏览器
本文链接:https://www.haomeiwen.com/subject/fpfufftx.html
网友评论