New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何在 onRequest中进行网络请求? #46
Comments
因为ajax-hook已经全局代理了浏览器原生的XMLHttpRequest,所以如果想在钩子函数中单独发起网络请求,可以使用浏览器原生的XMLHttpRequest, var _XHR=proxy(...)
...
var xhr=new _XHR
xhr.open(url)
xhr.send(...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在onRequest想进行同步网络请求。
发现用jquery $.ajax无法发送请求
The text was updated successfully, but these errors were encountered: