js--判断当前环境是否为微信环境

     /**
     * 判断是否是微信环境
     */
    ClientNetWeb.prototype.getIsWxClient = function () {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger") {
            return true;
        }
        return false;
    };

猜你喜欢

转载自www.cnblogs.com/wangyuyuan/p/9909290.html