Xmlhttp object reference
XMLHttpRequest object XMLHttpRequest member onreadystatechange readyState ResponseBody responsestream responseText responsexml status statustext about getallresponseheaders getresponseheader open send setrequestheader ResponseBody
Return server response data in a format
grammar
strValue = oXMLHttpRequest.responseBody;
Example
var xmlhttp = new ActiveXObject(“Msxml2.XMLHTTP.3.0”);
xmlhttp.open(“GET”, “http://localhost/books.xml”, false);
xmlhttp.send();
alert(xmlhttp.responseBody);
Remarks
Variable, which is read-only and represents the decoded binary data returned directly from the server in the form of unsigned array.
Reference resources
Responsestream property
ResponseText property
Responsexml attribute
ResponseBody
猜你喜欢
转载自blog.csdn.net/blog_programb/article/details/105616929
今日推荐
周排行