XMLHttpRequest
创建对象
XMLHttpRequest 对象
创建 XMLHttpRequest 对象
创建语法:
variable = new XMLHttpRequest();variable = new ActiveXObject("Microsoft.XMLHTTP");var xmlhttp;
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}发送请求
方法
Properties
XHR 2.0
Last updated