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

📄 a

📁 AJAX and PHP: Building Responsive Web Applications源代码
💻
字号:
Comparing files smartproxyping.js and SMARTPROXYPING2.JS
***** smartproxyping.js
      // display status message
      alert("There was a problem retrieving server availability data:\n" + 
            xmlHttp.statusText);
    }
***** SMARTPROXYPING2.JS
      // display status message
      alert("Error reading server availability:\n" + xmlHttp.statusText);
    }
*****

***** smartproxyping.js
  var response = xmlHttp.responseText;
  // if the response is long enough, or if it is void, we assuwe we just 
  // received a server-side error report
  if(response.length > 5 || response.length == 0)
    throw(response.length == 0 ? "Server error" : response);
  // obtain a reference to the <div> element on the page
***** SMARTPROXYPING2.JS
  var response = xmlHttp.responseText;
  // if the response is long enough, we assuwe we just received
  // a server-side error report
  if(response.length > 5)
    throw(response);
  // obtain a reference to the <div> element on the page
*****

***** smartproxyping.js
  var response = xmlHttp.responseText;
  // if the response is long enough, or if it is void, we assuwe we just 
  // received a server-side error report
  if(response.length > 5 || response.length == 0)
    throw(response.length == 0 ? "Server error" : response);
  // obtain a reference to the <div> element on the page
***** SMARTPROXYPING2.JS
  var response = xmlHttp.responseText;
  // if the response is long enough, we assuwe we just received
  // a server-side error report
  if(response.length > 5)
    throw(response);
  // obtain a reference to the <div> element on the page
*****

⌨️ 快捷键说明

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