判断当前是不是微信

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

function isWeiXin(){
    var ua = window.navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i) == 'micromessenger'){
        return true;
    }else{
        return false;
    }
}

转载于:https://my.oschina.net/u/3674038/blog/1586667

你可能感兴趣的:(判断当前是不是微信)