我有这段代码:
(function() {
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
console.log('request started!');
this.addEventListener('load', function() {
console.log('request completed!');
console.log(this.readyState);
});
origOpen.apply(this, arguments);
};
})();
我有这个日志:
问题是......我怎样才能抓住这个URL来处理RegEx?