//微信 var ua = navigator.userAgent.toLowerCase(); if(ua.match('micromessenger')){ return true; }
//识别支付宝
var browser = navigator.userAgent.toLowerCase(); if(browser.match(/Alipay/i)=="alipay"){ alert("这是支付宝打开"); }
//QQ内置浏览器
var ua = navigator.userAgent.toLowerCase();
if(ua.indexOf('pa qq') > -1){
return true;
}