xhttp.readyState;
时间: 2024-05-30 12:08:26 浏览: 83
http请求状态代码
The `readyState` property of the `XMLHttpRequest` object is used to determine the current state of the request. It can have the following values:
- 0: request not initialized
- 1: server connection established
- 2: request received
- 3: processing request
- 4: request finished and response is ready
So, if you execute `xhttp.readyState`, it will return the current state of the `XMLHttpRequest` object.
阅读全文