[removed] Overriding XMLHttpRequest.open()

前端 未结 4 1887
粉色の甜心
粉色の甜心 2020-12-01 04:29

How would I be able to override the XMLHttpRequest.open() method and then catch and alter it\'s arguments?

I\'ve already tried the proxy method but it d

4条回答
  •  甜味超标
    2020-12-01 05:31

    I would give the xmlhttprequest project at google code a look. It's a pretty good example of properly overriding the XMLHttpRequest object. The source can be seen here.

提交回复
热议问题