We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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想进行同步网络请求。 发现用jquery $.ajax无法发送请求
The text was updated successfully, but these errors were encountered:
因为ajax-hook已经全局代理了浏览器原生的XMLHttpRequest,所以如果想在钩子函数中单独发起网络请求,可以使用浏览器原生的XMLHttpRequest,proxy()和hook()方法的返回值就是浏览器原生的XMLHttpRequest对象, 比如:
proxy()和hook()
var _XHR=proxy(...) ... var xhr=new _XHR xhr.open(url) xhr.send(...)
Sorry, something went wrong.
No branches or pull requests
在onRequest想进行同步网络请求。
发现用jquery $.ajax无法发送请求
The text was updated successfully, but these errors were encountered: