Common XMLHttpRequest Object Methods
| Method | Description |
| abort() | Stops the current request |
| getAllResponseHeaders() | Returns complete set of headers (labels and values) as a string |
| getResponseHeader("headerLabel") | Returns the string value of a single header label |
| open("method", "URL"[, asyncFlag[, "userName"[, "password"]]]) | Assigns destination URL, method, and other optional attributes of a pending request |
| send(content) | Transmits the request, optionally with postable string or DOM object data |
| setRequestHeader("label", "value") | Assigns a label/value pair to the header to be sent with a request |
常用的XmlHttpRequest对象属性
| 属性 | 描述 |
| onreadystatechange | 每次状态改变所触发事件的事件处理程序 |
| readyState | 对象状态值:
|
| responseText | 从服务器进程返回的数据的字符串形式 |
| responseXML | 从服务器进程返回的DOM兼容的文档数据对象 |
| status | 从服务器返回的数字代码,比如404(未找到)或200(就绪) |
| statusText | 伴随状态码的字符串信息 |
[最后修改由 EalphaShi, 于 2005-11-08 03:45:09]
2690

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



