search

Home  >  Q&A  >  body text

javascript - What is the ua of WeChat's built-in browser?

If you know it, please post it, thank you!

怪我咯怪我咯2706 days ago1163

reply all(3)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-07-05 10:36:37

    Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; GT-S5660 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 MicroMessenger/4.5.255

    reply
    0
  • 世界只因有你

    世界只因有你2017-07-05 10:36:37

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

    reply
    0
  • 習慣沉默

    習慣沉默2017-07-05 10:36:37

    function isWechat() {
        const ua = navigator.userAgent.toLowerCase();
        return ua.match(/MicroMessenger/i)[0] === "micromessenger";
     }

    reply
    0
  • Cancelreply