判断是否是微信浏览器
html:
<p id="rs"></p>
js:
function is_weixin() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
$("#rs").text("微信浏览器");
} else {
$("#rs").text("不是微信浏览器");
}
}is_weixin();
例:不是微信浏览器

浙公网安备 33010602011771号