Figuring out when a XMLHttpRequest request was made without callbacks

前端 未结 2 575
长情又很酷
长情又很酷 2021-02-04 19:10

I\'m trying to overload the XMLHttpRequest.* method in JavaScript so a webpage can figure out if an Ajax request took place without using any intrusive callbacks. Now, something

2条回答
  •  抹茶落季
    2021-02-04 19:42

    XmlHttp is going to be a real problem, its a COM object and doesn't support the sort of prototype manipulation you want to use. Worse yet JQuery avoids XmlHttpRequest in IE even when its available it uses XmlHttp instead.

提交回复
热议问题