WeiWeiXinNet/Games/game3/js/other/transportHandler.js
(开头部分) 22KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//Cross-Browser Ajax Access
//(c) 2009-10 - Grant Galitz
function Ajax() {
this.typeCheck("object", arguments[0]);
if (arguments[0] != null) {
this.Method = 3;
this.MethodCodes = [
"XMLHttpRequest",
"ActiveXObject",
"iFrameMethod",
"NONE"
];
this.Status = 0;
this.StatusCodes = [
"initializing",
"loading",
"complete",
"failed"
];
this.pArguments = null, this.sURL = "", this.sXMLURL = "", this.sIFrameURL = "", this.sActiveXURL = "", this.sSelectedURL = "",
this.bReadyStateChangeSupported = false, this.bAsynchronous = true, this.bCached = false, this.bEmptyResponseAllowed = false,
this.fFail = function () { }, this.fLoading = function () { }, this.bAcceptEnforce = true, this.sAcceptType = "AUTO",
this.ajaxHandle = null, this.fComplete = function () { }, this.aPost = [], this.aGet = [], this.nTimeout = 60,
this.aOrder = [0, 1, 2], this.bRetryAllowed = true, this.nIFrameSafeTimeout = 1000, this.aXMLPost = [], this.aActiveXPost = [],
this.aIFramePost = [], this.aXMLGet = [], this.aActiveXGet = [], this.aIFrameGet = [], this.aSelectedGet = [], this.aSelectedPost = [],
this.sSelectedAcceptType = "AUTO", this.sXMLAcceptType = "AUTO", this.sActiveXAcceptType = "AUTO", this.sIFrameAcceptType = "AUTO";
this.StartTime = this.timestamp();
for (arg in arguments[0]) {
switch (arg) {
case "URL":
case "XMLURL":
case "ActiveXURL":
case "IFrameURL":
case "Accept":
case "XMLAccept":
case "ActiveXAccept":
case "IFrameAccept":
this.typeCheck("string", arguments[0][arg]);
break;
case "Asynchronous":
case "Cached":
case "EmptyResponseAllowed":
case "AcceptEnforce":
case "TryBackup":
this.typeCheck("boolean", arguments[0][arg]);
break;
case "Fail":
case "Loading":
case "Complete":
this.typeCheck("function", arguments[0][arg]);
break;
case "POST":
case "XMLPOST":
case "ActiveXPOST":
case "IFramePOST":
case "GET":
case "XMLGET":
case "ActiveXGET":
case "IFrameGET":
case "ORDER":
后面还有 659 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。