阮一峰的IT笔记:首页 -> 分类 -> Javascript 查看所有文章:按分类 | 按月份

XMLHttpRequest属性

1. readyState

请求的状态。有5个可取值:0=未初始化,1=正在加载,2=已加载,3=交互中,4=完成。

2. onreadystatechange

每个状态改变都会触发这个事件处理器,通常会调用一个JavaScript函数。

3. responseText

服务器的响应,表示为一个串。

4. responseXML

服务器的响应,表示为XML。这个对象可以解析为一个DOM对象。

5. status

服务器的HTTP状态码(200对应OK,404对应未找到,等等。)

6. statusTEXT

HTTP状态码相应的文本。

« XMLHttpRequest对象的方法 | 首页 | XMLHttpRequest代码示例 »

About

This page contains a single entry from the blog posted on 2007年05月05日 22:54.

The previous post in this blog was XMLHttpRequest对象的方法.

The next post in this blog is XMLHttpRequest代码示例.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33

Post a comment