- var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
- xmlhttp.open("GET","http://localhost/books.xml", false);
- xmlhttp.send();
- var book = xmlhttp.responseXML.selectSingleNode("//book[@id='bk101']");
- alert(book.xml);
备注
调用此方法后,可以调用send方法向服务器发送数据
相关文章: