您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

XMLHttpRequest中不同的readystate是什么意思,我该如何使用它们?

XMLHttpRequest中不同的readystate是什么意思,我该如何使用它们?

readyState值的完整列表为:

State  Description
0      The request is not initialized
1      The request has been set up
2      The request has been sent
3      The request is in process
4      The request is complete

实际上,除了4之外,几乎几乎不使用它们中的任何一个

_些XMLHttpRequest实现可能使您在responseTextwhen中看到部分接收到的响应readyState==3,但这不是普遍支持的,因此不应依赖。

其他 2022/1/1 18:16:52 有580人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶