igator.userAgent)){
                method = 'writeLog';
            }else if(/(Android)/i.test(navigator.userAgent)){
                method = 'log';
            }
            if(!!method)
                doLog(method, msg);
        }catch(e){
            console.error(e)
            throw e
        }
    }
    function doLog(method, msg){
        if(!!method && !!top.window.WeixinJSBridge && !!top.window.WeixinJSBridge.invoke){
            top.window.WeixinJSBridge.invoke(method, {
                "level"