判断qq内置浏览器和微信

//QQ内置浏览器
var ua = navigator.userAgent.toLowerCase();
if(ua.indexOf('pa qq') > -1){
      return true;
 }

//微信
var ua = navigator.userAgent.toLowerCase();
if(ua.match('micromessenger')){
      return true;
 }

猜你喜欢

转载自www.cnblogs.com/javenlee/p/9177494.html