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

📄 dojo.js

📁 struts hibernet spring
💻 JS
📖 第 1 页 / 共 5 页
字号:
dojo.debug(e);}}};dojo.lang.delayThese=function(farr,cb,_1c9,_1ca){if(!farr.length){if(typeof _1ca=="function"){_1ca();}return;}if((typeof _1c9=="undefined")&&(typeof cb=="number")){_1c9=cb;cb=function(){};}else{if(!cb){cb=function(){};if(!_1c9){_1c9=0;}}}setTimeout(function(){(farr.shift())();cb();dojo.lang.delayThese(farr,cb,_1c9,_1ca);},_1c9);};dojo.provide("dojo.string.extras");dojo.string.substituteParams=function(_1cb,hash){var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);return _1cb.replace(/\%\{(\w+)\}/g,function(_1ce,key){if(typeof (map[key])!="undefined"&&map[key]!=null){return map[key];}dojo.raise("Substitution not found: "+key);});};dojo.string.capitalize=function(str){if(!dojo.lang.isString(str)){return "";}if(arguments.length==0){str=this;}var _1d1=str.split(" ");for(var i=0;i<_1d1.length;i++){_1d1[i]=_1d1[i].charAt(0).toUpperCase()+_1d1[i].substring(1);}return _1d1.join(" ");};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 _1d6=escape(str);var _1d7,re=/%u([0-9A-F]{4})/i;while((_1d7=_1d6.match(re))){var num=Number("0x"+_1d7[1]);var _1da=escape("&#"+num+";");ret+=_1d6.substring(0,_1d7.index)+_1da;_1d6=_1d6.substring(_1d7.index+_1d7[0].length);}ret+=_1d6.replace(/\+/g,"%2B");return ret;};dojo.string.escape=function(type,str){var args=dojo.lang.toArray(arguments,1);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,_1df){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_1df){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;}return str.substring(0,len).replace(/\.+$/,"")+"...";};dojo.string.endsWith=function(str,end,_1e8){if(_1e8){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,_1ec,_1ed){if(_1ed){str=str.toLowerCase();_1ec=_1ec.toLowerCase();}return str.indexOf(_1ec)==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,_1f3){if(_1f3=="\n"){text=text.replace(/\r\n/g,"\n");text=text.replace(/\r/g,"\n");}else{if(_1f3=="\r"){text=text.replace(/\r\n/g,"\r");text=text.replace(/\n/g,"\r");}else{text=text.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1");}}return text;};dojo.string.splitEscaped=function(str,_1f5){var _1f6=[];for(var i=0,_1f8=0;i<str.length;i++){if(str.charAt(i)=="\\"){i++;continue;}if(str.charAt(i)==_1f5){_1f6.push(str.substring(_1f8,i));_1f8=i+1;}}_1f6.push(str.substr(_1f8));return _1f6;};dojo.provide("dojo.dom");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=="function"){try{return wh instanceof Element;}catch(E){}}else{return wh&&!isNaN(wh.nodeType);}};dojo.dom.getUniqueId=function(){var _1fa=dojo.doc();do{var id="dj_unique_"+(++arguments.callee._idIncrement);}while(_1fa.getElementById(id));return id;};dojo.dom.getUniqueId._idIncrement=0;dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_1fc,_1fd){var node=_1fc.firstChild;while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){node=node.nextSibling;}if(_1fd&&node&&node.tagName&&node.tagName.toLowerCase()!=_1fd.toLowerCase()){node=dojo.dom.nextElement(node,_1fd);}return node;};dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1ff,_200){var node=_1ff.lastChild;while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){node=node.previousSibling;}if(_200&&node&&node.tagName&&node.tagName.toLowerCase()!=_200.toLowerCase()){node=dojo.dom.prevElement(node,_200);}return node;};dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_203){if(!node){return null;}do{node=node.nextSibling;}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);if(node&&_203&&_203.toLowerCase()!=node.tagName.toLowerCase()){return dojo.dom.nextElement(node,_203);}return node;};dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_205){if(!node){return null;}if(_205){_205=_205.toLowerCase();}do{node=node.previousSibling;}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);if(node&&_205&&_205.toLowerCase()!=node.tagName.toLowerCase()){return dojo.dom.prevElement(node,_205);}return node;};dojo.dom.moveChildren=function(_206,_207,trim){var _209=0;if(trim){while(_206.hasChildNodes()&&_206.firstChild.nodeType==dojo.dom.TEXT_NODE){_206.removeChild(_206.firstChild);}while(_206.hasChildNodes()&&_206.lastChild.nodeType==dojo.dom.TEXT_NODE){_206.removeChild(_206.lastChild);}}while(_206.hasChildNodes()){_207.appendChild(_206.firstChild);_209++;}return _209;};dojo.dom.copyChildren=function(_20a,_20b,trim){var _20d=_20a.cloneNode(true);return this.moveChildren(_20d,_20b,trim);};dojo.dom.removeChildren=function(node){var _20f=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _20f;};dojo.dom.replaceChildren=function(node,_211){dojo.dom.removeChildren(node);node.appendChild(_211);};dojo.dom.removeNode=function(node){if(node&&node.parentNode){return node.parentNode.removeChild(node);}};dojo.dom.getAncestors=function(node,_214,_215){var _216=[];var _217=(_214&&(_214 instanceof Function||typeof _214=="function"));while(node){if(!_217||_214(node)){_216.push(node);}if(_215&&_216.length>0){return _216[0];}node=node.parentNode;}if(_215){return null;}return _216;};dojo.dom.getAncestorsByTag=function(node,tag,_21a){tag=tag.toLowerCase();return dojo.dom.getAncestors(node,function(el){return ((el.tagName)&&(el.tagName.toLowerCase()==tag));},_21a);};dojo.dom.getFirstAncestorByTag=function(node,tag){return dojo.dom.getAncestorsByTag(node,tag,true);};dojo.dom.isDescendantOf=function(node,_21f,_220){if(_220&&node){node=node.parentNode;}while(node){if(node==_21f){return true;}node=node.parentNode;}return false;};dojo.dom.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}};dojo.dom.createDocument=function(){var doc=null;var _223=dojo.doc();if(!dj_undef("ActiveXObject")){var _224=["MSXML2","Microsoft","MSXML","MSXML3"];for(var i=0;i<_224.length;i++){try{doc=new ActiveXObject(_224[i]+".XMLDOM");}catch(e){}if(doc){break;}}}else{if((_223.implementation)&&(_223.implementation.createDocument)){doc=_223.implementation.createDocument("","",null);}}return doc;};dojo.dom.createDocumentFromText=function(str,_227){if(!_227){_227="text/xml";}if(!dj_undef("DOMParser")){var _228=new DOMParser();return _228.parseFromString(str,_227);}else{if(!dj_undef("ActiveXObject")){var _229=dojo.dom.createDocument();if(_229){_229.async=false;_229.loadXML(str);return _229;}else{dojo.debug("toXml didn't work?");}}else{var _22a=dojo.doc();if(_22a.createElement){var tmp=_22a.createElement("xml");tmp.innerHTML=str;if(_22a.implementation&&_22a.implementation.createDocument){var _22c=_22a.implementation.createDocument("foo","",null);for(var i=0;i<tmp.childNodes.length;i++){_22c.importNode(tmp.childNodes.item(i),true);}return _22c;}return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));}}}return null;};dojo.dom.prependChild=function(node,_22f){if(_22f.firstChild){_22f.insertBefore(node,_22f.firstChild);}else{_22f.appendChild(node);}return true;};dojo.dom.insertBefore=function(node,ref,_232){if(_232!=true&&(node===ref||node.nextSibling===ref)){return false;}var _233=ref.parentNode;_233.insertBefore(node,ref);return true;};dojo.dom.insertAfter=function(node,ref,_236){var pn=ref.parentNode;if(ref==pn.lastChild){if((_236!=true)&&(node===ref)){return false;}pn.appendChild(node);}else{return this.insertBefore(node,ref.nextSibling,_236);}return true;};dojo.dom.insertAtPosition=function(node,ref,_23a){if((!node)||(!ref)||(!_23a)){return false;}switch(_23a.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,_23c,_23d){var _23e=_23c.childNodes;if(!_23e.length){_23c.appendChild(node);return true;}var _23f=null;for(var i=0;i<_23e.length;i++){var _241=_23e.item(i)["getAttribute"]?parseInt(_23e.item(i).getAttribute("dojoinsertionindex")):-1;if(_241<_23d){_23f=_23e.item(i);}}if(_23f){return dojo.dom.insertAfter(node,_23f);}else{return dojo.dom.insertBefore(node,_23e.item(0));}};dojo.dom.textContent=function(node,text){if(arguments.length>1){var _244=dojo.doc();dojo.dom.replaceChildren(node,_244.createTextNode(text));return text;}else{if(node.textContent!=undefined){return node.textContent;}var _245="";if(node==null){return _245;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_245+=dojo.dom.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_245+=node.childNodes[i].nodeValue;break;default:break;}}return _245;}};dojo.dom.hasParent=function(node){return node&&node.parentNode&&dojo.dom.isNode(node.parentNode);};dojo.dom.isTag=function(node){if(node&&node.tagName){for(var i=1;i<arguments.length;i++){if(node.tagName==String(arguments[i])){return String(arguments[i]);}}}return "";};dojo.dom.setAttributeNS=function(elem,_24b,_24c,_24d){if(elem==null||((elem==undefined)&&(typeof elem=="undefined"))){dojo.raise("No element given to dojo.dom.setAttributeNS");}if(!((elem.setAttributeNS==undefined)&&(typeof elem.setAttributeNS=="undefined"))){elem.setAttributeNS(_24b,_24c,_24d);}else{var _24e=elem.ownerDocument;var _24f=_24e.createNode(2,_24c,_24b);_24f.nodeValue=_24d;elem.setAttributeNode(_24f);}};dojo.provide("dojo.undo.browser");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){}if(dojo.render.html.opera){dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");}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=this._createState(this.initialHref,args,this.initialHash);},addToHistory:function(args){this.forwardStack=[];var hash=null;var url=null;if(!this.historyIframe){this.historyIframe=window.frames["djhistory"];}if(!this.bookmarkAnchor){this.bookmarkAnchor=document.createElement("a");dojo.body().appendChild(this.bookmarkAnchor);this.bookmarkAnchor.style.display="none";}if(args["changeUrl"]){hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());if(this.historyStack.length==0&&this.initialState.urlHash==hash){this.initialState=this._createState(url,args,hash);return;}else{if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){

⌨️ 快捷键说明

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