方法:(微信官方js判断做法)
var ua = navigator.userAgent.toLowerCase(); var isWeixin = ua.indexOf(‘micromessenger‘) != -1; if (isWeixin) { return true; }else{ return false; }
2023-11-29 10:54:04
方法:(微信官方js判断做法)
var ua = navigator.userAgent.toLowerCase(); var isWeixin = ua.indexOf(‘micromessenger‘) != -1; if (isWeixin) { return true; }else{ return false; }