var ua = navigator.userAgent.toLowerCase();
        var isIOS = ua.match(/iphone|ipod|ipad/gi);
        var isAndroid = (ua.match(/android/i) == "android");
         function isWeiXin(){
            if(ua.match(/MicroMessenger/i) == 'micromessenger'){
                return true;
            }else{
                return false;
            }
        }
                
          function isWeibo(){
            if(ua.match(/weibo/i) == 'weibo'){
                return true;
            }else{
                return false;
            }
        }

 

posted on 2016-05-20 11:24  小海豚Dolphins  阅读(112)  评论(0编辑  收藏  举报