(function() {
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
// console.log('request started!');
this.addEventListener('load', function() {
console.log(this.responseText); // 得到Ajax的返回内容
});
origOpen.apply(this, arguments);
};
})();
js Hook Ajax
最新推荐文章于 2024-03-23 09:40:26 发布