XMLHttpRequest readyState
Integer reporting the status of the request:
0 = uninitialized
1 = loading 已调用open方法
2 = loaded 已调用send方法
3 = interactive 已接收部分数据
4 = completed 数据接收完毕,此时可以通过通过responseBody和responseText获取完整的回应数据
本文深入解析了XMLHttpRequest的状态代码,从初始状态到数据接收完成的整个过程,包括0-未初始化、1-加载中、2-加载完成、3-交互中、4-已完成状态。详细解释了如何通过这些状态代码获取和处理HTTP响应。
XMLHttpRequest readyState
Integer reporting the status of the request:
0 = uninitialized
1 = loading 已调用open方法
2 = loaded 已调用send方法
3 = interactive 已接收部分数据
4 = completed 数据接收完毕,此时可以通过通过responseBody和responseText获取完整的回应数据
1127
1263

被折叠的 条评论
为什么被折叠?