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

📄 fe.js

📁 matlab书籍很好 很好 的文章
💻 JS
字号:
if(!(typeof (Fe)=="object"&&Fe&&Fe.version)){var Fe={version:"20080723",emptyFn:function(){}}}Fe.isArray=function(A){return A&&typeof (A)=="object"&&A.constructor==Array};Fe.isObject=function(A){return(A&&(typeof (A)=="object"||typeof (A)=="function"))||false};Fe.trim=function(A){return A.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+$)/g,"")};Fe.format=function(C,B){if(arguments.length>1){if(typeof (B)=="object"){C=C.replace(/#\{([^\{\}]+)\}/g,function(D,F){var E=B[F];if(typeof E=="function"){E=E(F)}return typeof (E)=="undefined"?"":E})}else{if(typeof (B)!="undefined"){for(var A=arguments.length-2;A>-1;A--){C=C.replace(new RegExp("#\\{"+A+"\\}","g"),arguments[A+1])}}}}return C};Fe.each=function(E,A){if(E){if(E.length==undefined){for(var B in E){A.call(E[B],E[B],B)}}else{for(var C=0,D=E.length;C<D;C++){A.call(E[C],E[C],C)}}}return E};Fe.indexOf=function(D,B,C){C=C||0;if(C<0){C=Math.max(0,D.length+C)}for(var A=C;A<D.length;A++){if(D[A]===B){return A}}return -1};Fe.extend=function(D,A,C){if(C){Fe.extend(D,C)}if(D&&A&&typeof (A)=="object"){for(var B in A){D[B]=A[B]}}return D};Fe.extend(Fe,(function(){var C=navigator.userAgent;var D=0,A=0,E=0,F=0,B=0;if(C.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(C)){D=RegExp.$1}if(window.opera&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(C)){A=RegExp.$2}if(C.indexOf("Gecko")>-1&&C.indexOf("KHTML")==-1&&/rv\:(\d+(\.\d+)?)/.test(C)){F=RegExp.$1}if(/MSIE (\d+(\.\d+)?)/.test(C)){E=RegExp.$1}if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(C)){B=RegExp.$2}return({isStrict:document.compatMode=="CSS1Compat",isSafari:D,isOpera:A,isGecko:F,isIE:E,isFF:B})})());Fe.G=function(){for(var A=[],B=arguments.length-1;B>-1;B--){var C=arguments[B];A[B]=null;if(typeof (C)=="object"&&C.dom){A[B]=C.dom}else{if((typeof (C)=="object"&&C&&C.tagName)||C==window||C==document){A[B]=C}else{if(typeof (C)=="string"&&(C=document.getElementById(C))){A[B]=C}}}}return A.length<2?A[0]:A};Fe.hide=function(){Fe.each(arguments,function(A){if(A=Fe.G(A)){A.style.display="none"}})};Fe.show=function(){Fe.each(arguments,function(A){if(A=Fe.G(A)){A.style.display=""}})};Fe.toggle=function(){Fe.each(arguments,function(A){if(A=Fe.G(A)){A.style.display=A.style.display=="none"?"":"none"}})};Fe.addClassName=function(C,D){if(!(C=Fe.G(C))){return }var A=C.className.split(" "),B=Fe.trim;if(!new RegExp("(^|\\s{1,})"+B(D)+"(\\s{1,}|$)").test(C.className)){C.className=B(A.concat(D).join(" "))}};Fe.removeClassName=function(B,C){if(!(B=Fe.G(B))){return }var A=Fe.trim,D=new RegExp("(^|\\s{1,})"+A(C)+"(\\s{1,}|$)","g");B.className=A(B.className.replace(D,"$2"))};Fe.ac=Fe.addClassName;Fe.rc=Fe.removeClassName;Fe.body=function(){var A=0,I=0,E=0,C=0,B=0,J=0;var F=window,D=document,G=D.documentElement;A=G.clientWidth||D.body.clientWidth;I=F.innerHeight||G.clientHeight||D.body.clientHeight;C=D.body.scrollTop||G.scrollTop;E=D.body.scrollLeft||G.scrollLeft;B=Math.max(D.body.scrollWidth,G.scrollWidth||0);J=Math.max(D.body.scrollHeight,G.scrollHeight||0,I);return{scrollTop:C,scrollLeft:E,documentWidth:B,documentHeight:J,viewWidth:A,viewHeight:I}};Fe.on=function(C,A,B){if(!(C=Fe.G(C))){return false}A=A.replace(/^on/,"").toLowerCase();if(Fe.isIE){C.attachEvent("on"+A,B)}else{if(C.addEventListener){C.addEventListener(A,B,false)}}};Fe.un=function(C,A,B){if(!(C=Fe.G(C))){return false}A=A.replace(/^on/,"").toLowerCase();if(Fe.isIE){C.detachEvent("on"+A,B)}else{if(C.removeEventListener){C.removeEventListener(A,B,false)}}};Fe.getStyle=function(B,C){B=Fe.G(B);if(!B||!C){return null}if(C=="float"){C=Fe.isIE?"styleFloat":"cssFloat"}C=C.replace(/(-[a-z])/gi,function(D,E){return E.charAt(1).toUpperCase()});var A=null;if(A=B.style[C]){return A}if(A=B.currentStyle[C]){return A}};if(typeof (HTMLElement)!="undefined"&&!window.opera){HTMLElement.prototype.__defineGetter__("currentStyle",function(){return this.ownerDocument.defaultView.getComputedStyle(this,null)});HTMLElement.prototype.__defineGetter__("children",function(){for(var B=[],C=0,E,D=0,A=this.childNodes.length;D<A;D++){E=this.childNodes[D];if(E.nodeType==1){B[C++]=E;if(E.name){if(!B[E.name]){B[E.name]=[]}B[E.name][B[E.name].length]=E}if(E.id){B[E.id]=E}}}return B});HTMLElement.prototype.insertAdjacentHTML=function(A,B){var C=this.ownerDocument.createRange();C.setStartBefore(this);C=C.createContextualFragment(B);switch(A){case"beforeBegin":this.parentNode.insertBefore(C,this);break;case"afterBegin":this.insertBefore(C,this.firstChild);break;case"beforeEnd":this.appendChild(C);break;case"afterEnd":if(!this.nextSibling){this.parentNode.appendChild(C)}else{this.parentNode.insertBefore(C,this.nextSibling)}break}}}if(!window.console||!console.firebug){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=function(){}}};

⌨️ 快捷键说明

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