HOOK XHR请求

感悟人生263 / 2023-04-28 / 原文

 

 

(function (){
    var open=window.xmlHttpRequest.prototype.open;
    window.xmlHttpRequest.prototype.open = function (method,url,async){
        if(url.indexOf('analysis') != -1){
            debugger;
        }
        return open.apply(this,arguments);
    };
})();