判断是否是微信端


isWeChat(){
    let ua = navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == "micromessenger") {
        this.iswx = true  //微信端
    } else {
        this.iswx = false;  //非微信端
    }
},
posted @ 2020-03-10 15:45  huihuihero  阅读(288)  评论(0编辑  收藏  举报