XMLHTTP 的 readyState 值含义

作者:vkvi 来源:ITPOW(原创) 日期:2008-6-18

XMLHTTP 的 readyState 值含义:

  • 0-未初始化,即尚未调用 open。
  • 1-初始化,即尚未调用 send。
  • 2-发送数据,即已经调用 send。
  • 3-数据传送中。
  • 4-完成。
0-uninitialized Object is not initialized with data.
1-loading Object is loading its data.
2-loaded Object has finished loading its data.
3-interactive User can interact with the object even though it is not fully loaded.
4-complete Object is completely initialized.