XMLHttpRequest
的父类
属性
属性 | 描述 |
---|---|
onabort | when a request is aborted |
onerror | when a request encounters an error |
onload | when an HTTP request returns after successfully fetching content |
onloadstart | when the HTTP request first begins loading data |
onprogress | Contains the function that is called periodically with information about the progress of the request |
ontimeout | Contains the function that is called if the event times out |
onloadend | Contains the function that is called when the load is completed |
参考:
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget