You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/js/jupyter.js

18 lines
573 B

(function(open) {
XMLHttpRequest.prototype.open = function(method, url, async, user, password) {
this.addEventListener("load", function() {
console.log('XMLHttpRequest 请求完成', method, url);
});
open.call(this, method, url, async, user, password);
};
})(XMLHttpRequest.prototype.open);
(function(fetch) {
window.fetch = function() {
return fetch.apply(this, arguments).then(function(response) {
console.log('fetch 请求完成', response.url);
return response;
});
};
})(window.fetch);