dztHome

非微信浏览器条件下隐藏某些东西:

function isWeiXin(){
        var ua = window.navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i) == \'micromessenger\' || ua.match(/_SQ_/i) == \'_sq_\'){
            return true;
        }else{
            document.getElementById("follow").style.visibility="hidden"; 
            return false;
        }
    }
    isWeiXin();

 

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2021-06-28
  • 2021-10-30
  • 2021-12-17
  • 2021-07-25
猜你喜欢
  • 2021-11-18
  • 2021-07-20
  • 2021-09-28
  • 2022-01-14
  • 2021-11-18
  • 2022-02-10
  • 2022-01-18
相关资源
相似解决方案