⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 29-1.js

📁 java应用代码和章节代码。各种功能实现效果。很值
💻 JS
字号:
// XML document
var xDoc;
// retrieve XML document as document object
function loadXMLDoc(url) {
 var req;
 if (window.XMLHttpRequest) {
   req = new XMLHttpRequest();
   req.open("GET", url, false);
   req.send(null);
 } else if (window.ActiveXObject) {
  req = new ActiveXObject("Microsoft.XMLHTTP");
  if (req) {
   req.open("GET", url, false);
   req.send();
  }
 }
 if (req) {
  if (req.status == 200) {
   xDoc = req.responseXML;
   if (xDoc && typeof xDoc.childNodes != "undefined" && xDoc.childNodes.length == 0) {
     xDoc = null;
    }
   } else {
    alert("There was a problem retrieving the XML data:\n" +
    req.statusText);
   }
  } else {
   alert("Sorry, this browser isn\'t equipped to read XML data.");
 }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -