编辑下面的代码:【加编码】
<html> <body> <script> if (window.XMLHttpRequest) { xhttp=new XMLHttpRequest(); } else // for IE 5/6 { xhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xhttp.open("GET","books.xml",false); xhttp.send(); xmlDoc=xhttp.responseXML; document.write("XML document loaded into an XML DOM Object."); </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂