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

📄 dojo.js

📁 AJAX_aptana_update 关于AJAX的Eclipse插件。可以在这里下载的
💻 JS
📖 第 1 页 / 共 5 页
字号:
for(var i=0;i<len;i++){var word=_115[i];word=word.charAt(0).toUpperCase()+word.substring(1,word.length);_116+=word;if(i<len-1){_116+=" ";}}return new String(_116);};dojo.string.isBlank=function(str){if(!dojo.lang.isString(str)){return true;}return (dojo.string.trim(str).length==0);};dojo.string.encodeAscii=function(str){if(!dojo.lang.isString(str)){return str;}var ret="";var _11d=escape(str);var _11e,re=/%u([0-9A-F]{4})/i;while((_11e=_11d.match(re))){var num=Number("0x"+_11e[1]);var _120=escape("&#"+num+";");ret+=_11d.substring(0,_11e.index)+_120;_11d=_11d.substring(_11e.index+_11e[0].length);}ret+=_11d.replace(/\+/g,"%2B");return ret;};dojo.string.escape=function(type,str){var args=[];for(var i=1;i<arguments.length;i++){args.push(arguments[i]);}switch(type.toLowerCase()){case "xml":case "html":case "xhtml":return dojo.string.escapeXml.apply(this,args);case "sql":return dojo.string.escapeSql.apply(this,args);case "regexp":case "regex":return dojo.string.escapeRegExp.apply(this,args);case "javascript":case "jscript":case "js":return dojo.string.escapeJavaScript.apply(this,args);case "ascii":return dojo.string.encodeAscii.apply(this,args);default:return str;}};dojo.string.escapeXml=function(str,_126){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_126){str=str.replace(/'/gm,"&#39;");}return str;};dojo.string.escapeSql=function(str){return str.replace(/'/gm,"''");};dojo.string.escapeRegExp=function(str){return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");};dojo.string.escapeJavaScript=function(str){return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");};dojo.string.escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.string.summary=function(str,len){if(!len||str.length<=len){return str;}else{return str.substring(0,len).replace(/\.+$/,"")+"...";}};dojo.string.endsWith=function(str,end,_12f){if(_12f){str=str.toLowerCase();end=end.toLowerCase();}if((str.length-end.length)<0){return false;}return str.lastIndexOf(end)==str.length-end.length;};dojo.string.endsWithAny=function(str){for(var i=1;i<arguments.length;i++){if(dojo.string.endsWith(str,arguments[i])){return true;}}return false;};dojo.string.startsWith=function(str,_133,_134){if(_134){str=str.toLowerCase();_133=_133.toLowerCase();}return str.indexOf(_133)==0;};dojo.string.startsWithAny=function(str){for(var i=1;i<arguments.length;i++){if(dojo.string.startsWith(str,arguments[i])){return true;}}return false;};dojo.string.has=function(str){for(var i=1;i<arguments.length;i++){if(str.indexOf(arguments[i])>-1){return true;}}return false;};dojo.string.normalizeNewlines=function(text,_13a){if(_13a=="\n"){text=text.replace(/\r\n/g,"\n");text=text.replace(/\r/g,"\n");}else{if(_13a=="\r"){text=text.replace(/\r\n/g,"\r");text=text.replace(/\n/g,"\r");}else{text=text.replace(/([^\r])\n/g,"$1\r\n");text=text.replace(/\r([^\n])/g,"\r\n$1");}}return text;};dojo.string.splitEscaped=function(str,_13c){var _13d=[];for(var i=0,prevcomma=0;i<str.length;i++){if(str.charAt(i)=="\\"){i++;continue;}if(str.charAt(i)==_13c){_13d.push(str.substring(prevcomma,i));prevcomma=i+1;}}_13d.push(str.substr(prevcomma));return _13d;};dojo.provide("dojo.dom");dojo.require("dojo.lang.array");dojo.dom.ELEMENT_NODE=1;dojo.dom.ATTRIBUTE_NODE=2;dojo.dom.TEXT_NODE=3;dojo.dom.CDATA_SECTION_NODE=4;dojo.dom.ENTITY_REFERENCE_NODE=5;dojo.dom.ENTITY_NODE=6;dojo.dom.PROCESSING_INSTRUCTION_NODE=7;dojo.dom.COMMENT_NODE=8;dojo.dom.DOCUMENT_NODE=9;dojo.dom.DOCUMENT_TYPE_NODE=10;dojo.dom.DOCUMENT_FRAGMENT_NODE=11;dojo.dom.NOTATION_NODE=12;dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};dojo.dom.isNode=function(wh){if(typeof Element=="object"){try{return wh instanceof Element;}catch(E){}}else{return wh&&!isNaN(wh.nodeType);}};dojo.dom.getTagName=function(node){dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");var _141=node.tagName;if(_141.substr(0,5).toLowerCase()!="dojo:"){if(_141.substr(0,4).toLowerCase()=="dojo"){return "dojo:"+_141.substring(4).toLowerCase();}var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");if(djt){return "dojo:"+djt.toLowerCase();}if((node.getAttributeNS)&&(node.getAttributeNS(this.dojoml,"type"))){return "dojo:"+node.getAttributeNS(this.dojoml,"type").toLowerCase();}try{djt=node.getAttribute("dojo:type");}catch(e){}if(djt){return "dojo:"+djt.toLowerCase();}if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){var _143=node.className||node.getAttribute("class");if((_143)&&(_143.indexOf)&&(_143.indexOf("dojo-")!=-1)){var _144=_143.split(" ");for(var x=0;x<_144.length;x++){if((_144[x].length>5)&&(_144[x].indexOf("dojo-")>=0)){return "dojo:"+_144[x].substr(5).toLowerCase();}}}}}return _141.toLowerCase();};dojo.dom.getUniqueId=function(){do{var id="dj_unique_"+(++arguments.callee._idIncrement);}while(document.getElementById(id));return id;};dojo.dom.getUniqueId._idIncrement=0;dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_147,_148){var node=_147.firstChild;while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){node=node.nextSibling;}if(_148&&node&&node.tagName&&node.tagName.toLowerCase()!=_148.toLowerCase()){node=dojo.dom.nextElement(node,_148);}return node;};dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_14a,_14b){var node=_14a.lastChild;while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){node=node.previousSibling;}if(_14b&&node&&node.tagName&&node.tagName.toLowerCase()!=_14b.toLowerCase()){node=dojo.dom.prevElement(node,_14b);}return node;};dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_14e){if(!node){return null;}do{node=node.nextSibling;}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);if(node&&_14e&&_14e.toLowerCase()!=node.tagName.toLowerCase()){return dojo.dom.nextElement(node,_14e);}return node;};dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_150){if(!node){return null;}if(_150){_150=_150.toLowerCase();}do{node=node.previousSibling;}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);if(node&&_150&&_150.toLowerCase()!=node.tagName.toLowerCase()){return dojo.dom.prevElement(node,_150);}return node;};dojo.dom.moveChildren=function(_151,_152,trim){var _154=0;if(trim){while(_151.hasChildNodes()&&_151.firstChild.nodeType==dojo.dom.TEXT_NODE){_151.removeChild(_151.firstChild);}while(_151.hasChildNodes()&&_151.lastChild.nodeType==dojo.dom.TEXT_NODE){_151.removeChild(_151.lastChild);}}while(_151.hasChildNodes()){_152.appendChild(_151.firstChild);_154++;}return _154;};dojo.dom.copyChildren=function(_155,_156,trim){var _158=_155.cloneNode(true);return this.moveChildren(_158,_156,trim);};dojo.dom.removeChildren=function(node){var _15a=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _15a;};dojo.dom.replaceChildren=function(node,_15c){dojo.dom.removeChildren(node);node.appendChild(_15c);};dojo.dom.removeNode=function(node){if(node&&node.parentNode){return node.parentNode.removeChild(node);}};dojo.dom.getAncestors=function(node,_15f,_160){var _161=[];var _162=dojo.lang.isFunction(_15f);while(node){if(!_162||_15f(node)){_161.push(node);}if(_160&&_161.length>0){return _161[0];}node=node.parentNode;}if(_160){return null;}return _161;};dojo.dom.getAncestorsByTag=function(node,tag,_165){tag=tag.toLowerCase();return dojo.dom.getAncestors(node,function(el){return ((el.tagName)&&(el.tagName.toLowerCase()==tag));},_165);};dojo.dom.getFirstAncestorByTag=function(node,tag){return dojo.dom.getAncestorsByTag(node,tag,true);};dojo.dom.isDescendantOf=function(node,_16a,_16b){if(_16b&&node){node=node.parentNode;}while(node){if(node==_16a){return true;}node=node.parentNode;}return false;};dojo.dom.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}};dojo.dom.createDocumentFromText=function(str,_16e){if(!_16e){_16e="text/xml";}if(typeof DOMParser!="undefined"){var _16f=new DOMParser();return _16f.parseFromString(str,_16e);}else{if(typeof ActiveXObject!="undefined"){var _170=new ActiveXObject("Microsoft.XMLDOM");if(_170){_170.async=false;_170.loadXML(str);return _170;}else{dojo.debug("toXml didn't work?");}}else{if(document.createElement){var tmp=document.createElement("xml");tmp.innerHTML=str;if(document.implementation&&document.implementation.createDocument){var _172=document.implementation.createDocument("foo","",null);for(var i=0;i<tmp.childNodes.length;i++){_172.importNode(tmp.childNodes.item(i),true);}return _172;}return tmp.document&&tmp.document.firstChild?tmp.document.firstChild:tmp;}}}return null;};dojo.dom.prependChild=function(node,_175){if(_175.firstChild){_175.insertBefore(node,_175.firstChild);}else{_175.appendChild(node);}return true;};dojo.dom.insertBefore=function(node,ref,_178){if(_178!=true&&(node===ref||node.nextSibling===ref)){return false;}var _179=ref.parentNode;_179.insertBefore(node,ref);return true;};dojo.dom.insertAfter=function(node,ref,_17c){var pn=ref.parentNode;if(ref==pn.lastChild){if((_17c!=true)&&(node===ref)){return false;}pn.appendChild(node);}else{return this.insertBefore(node,ref.nextSibling,_17c);}return true;};dojo.dom.insertAtPosition=function(node,ref,_180){if((!node)||(!ref)||(!_180)){return false;}switch(_180.toLowerCase()){case "before":return dojo.dom.insertBefore(node,ref);case "after":return dojo.dom.insertAfter(node,ref);case "first":if(ref.firstChild){return dojo.dom.insertBefore(node,ref.firstChild);}else{ref.appendChild(node);return true;}break;default:ref.appendChild(node);return true;}};dojo.dom.insertAtIndex=function(node,_182,_183){var _184=_182.childNodes;if(!_184.length){_182.appendChild(node);return true;}var _185=null;for(var i=0;i<_184.length;i++){var _187=_184.item(i)["getAttribute"]?parseInt(_184.item(i).getAttribute("dojoinsertionindex")):-1;if(_187<_183){_185=_184.item(i);}}if(_185){return dojo.dom.insertAfter(node,_185);}else{return dojo.dom.insertBefore(node,_184.item(0));}};dojo.dom.textContent=function(node,text){if(text){dojo.dom.replaceChildren(node,document.createTextNode(text));return text;}else{var _18a="";if(node==null){return _18a;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_18a+=dojo.dom.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_18a+=node.childNodes[i].nodeValue;break;default:break;}}return _18a;}};dojo.dom.collectionToArray=function(_18c){dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");return dojo.lang.toArray(_18c);};dojo.dom.hasParent=function(node){return node&&node.parentNode&&dojo.dom.isNode(node.parentNode);};dojo.dom.isTag=function(node){if(node&&node.tagName){var arr=dojo.lang.toArray(arguments,1);return arr[dojo.lang.find(node.tagName,arr)]||"";}return "";};dojo.provide("dojo.undo.browser");dojo.require("dojo.io");try{if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");}}catch(e){}dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){this.initialState={"url":this.initialHref,"kwArgs":args,"urlHash":this.initialHash};},addToHistory:function(args){var hash=null;if(!this.historyIframe){this.historyIframe=window.frames["djhistory"];}if(!this.bookmarkAnchor){this.bookmarkAnchor=document.createElement("a");(document.body||document.getElementsByTagName("body")[0]).appendChild(this.bookmarkAnchor);this.bookmarkAnchor.style.display="none";}if((!args["changeUrl"])||(dojo.render.html.ie)){var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();this.moveForward=true;dojo.io.setIFrameSrc(this.historyIframe,url,false);}if(args["changeUrl"]){this.changingUrl=true;hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);this.bookmarkAnchor.href=hash;if(dojo.render.html.ie){var _194=args["back"]||args["backButton"]||args["handle"];var tcb=function(_196){if(window.location.hash!=""){setTimeout("window.location.href = '"+hash+"';",1);}_194.apply(this,[_196]);};if(args["back"]){args.back=tcb;}else{if(args["backButton"]){args.backButton=tcb;}else{if(args["handle"]){args.handle=tcb;}}}this.forwardStack=[];var _197=args["forward"]||args["forwardButton"]||args["handle"];var tfw=function(_199){if(window.location.hash!=""){window.location.href=hash;}if(_197){_197.apply(this,[_199]);}};if(args["forward"]){args.forward=tfw;}else{if(args["forwardButton"]){args.forwardButton=tfw;}else{if(args["handle"]){args.handle=tfw;

⌨️ 快捷键说明

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