function isWeiXinOrQQ(){
  var ua = window.navigator.userAgent.toLowerCase();
  if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/\sqq/i) == " qq"){
    return true;
  }else{
    return false;
   }
}

 

 posted on 2016-05-20 15:55  顺文章  阅读(486)  评论(0编辑  收藏  举报