XmlHttp.CN
XMLHTTP撖寡情?/div>
XMLHTTPRequest 撖寡情 XMLHTTPRequest onreadystatechange readyState responseBody responseStream responseText responseXML status statusText abort getAllResponseHeaders getResponseHeader open send setRequestHeader

XMLHttpRequest

靘摰X瑞垢http∪券霈舐霈?/p>

Example

銝Y隞臬沅Script銝剖撱箔銝杲MLHTTP撖寡情撟嗡∪刻窈瘙銝銝杲ML獢∪刻XML獢撟嗆曄內?/p>

var xmlHttpReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");
xmlHttpReq.open("GET", "http://localhost/books.xml", false);
xmlHttpReq.send();
alert(xmlHttpReq.responseText);

券IE瘚閫其葉嚗閬盯ew XMLHttpRequest()亙撱箏笆鞊∴憒銝嚗?/p>

var xmlHttpReq = new XMLHttpRequest();
xmlHttpReq.open("GET", "http://localhost/books.xml", false);
xmlHttpReq.send();
alert(xmlHttpReq.responseText);

vbscript嚗?/p>

Dim HttpReq As New MSXML2.XMLHTTP30
HttpReq.open "GET", "http://localhost/books.xml", False
HttpReq.send
MsgBox HttpReq.responseText

憭瘜

摰X瑞垢臭誑餈XmlHttp撖寡情(MSXML2.XMLHTTP.3.0)http∪典霂瑟撟嗡蝙典凝頧狷ML獢撖寡情璅∪Microsoft簧 XML Document Object Model (DOM)憭摨?

?/h2> XMLHTTPRequest