flymis/WebRoot/dojojs/src/hostenv_dashboard.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.render.name = dojo.hostenv.name_ = "dashboard";
dojo.hostenv.println = function(/*String*/ message){
// summary: Prints a message to the OS X console
return alert(message); // null
}
dojo.hostenv.getXmlhttpObject = function(/*Object*/ kwArgs){
// summary: Returns the appropriate transfer object for the call type
if(widget.system && kwArgs){
if((kwArgs.contentType && kwArgs.contentType.indexOf("text/") != 0) || (kwArgs.headers && kwArgs.headers["content-type"] && kwArgs.headers["content-type"].indexOf("text/") != 0)){
var curl = new dojo.hostenv.CurlRequest;
curl._save = true;
return curl;
}else if(kwArgs.method && kwArgs.method.toUpperCase() == "HEAD"){
return new dojo.hostenv.CurlRequest;
}else if(kwArgs.headers && kwArgs.header.referer){
return new dojo.hostenv.CurlRequest;
}
}
return new XMLHttpRequest; // XMLHttpRequest
}
dojo.hostenv.CurlRequest = function(){
// summary: Emulates the XMLHttpRequest Object
this.onreadystatechange = null;
this.readyState = 0;
this.responseText = "";
this.responseXML = null;
this.status = 0;
this.statusText = "";
this._method = "";
this._url = "";
this._async = true;
this._referrer = "";
this._headers = [];
this._save = false;
this._responseHeader = "";
this._responseHeaders = {};
this._fileName = "";
this._username = "";
this._password = "";
}
dojo.hostenv.CurlRequest.prototype.open = function(/*String*/ method, /*URL*/ url, /*Boolean?*/ async, /*String?*/ username, /*String?*/ password){
this._method = method;
this._url = url;
if(async){
this._async = async;
}
后面还有 137 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。