获取浏览器的User Anent及判断微信浏览器
//获取浏览器的User Agent
document.write(navigator.userAgent)
//判断是否是微信浏览器
function isMicroMessenger(){
var result = false;
var ua = navigator.userAgent;
if(ua.indexOf('MicroMessenger') > -1){
reulst = true;
}
return result;
}