我需要在打开XMLHttp连接(即)之前addEventListener侦听progress事件,但该方法返回已打开的xhr实例.如何覆盖它以正确添加侦听器?xhr.open()beforeSend
addEventListener
progress
xhr.open()
beforeSend
(注意:您需要在请求上调用open()之前添加事件侦听器.否则,不会触发progress事件.)
ajax jquery
ajax ×1
jquery ×1