g2_messages_zh_cn-041978fca58d2e595d5830ce4cbb1f92.js

来自「Dm9000网络接口驱动大全」· JavaScript 代码 · 共 81 行 · 第 1/3 页

JS
81
字号
/* Copyright 2007 Google Inc. */ (function() { ;var R=false;function S(a){try{throw a;}catch(b){T(b)}}function T(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(o()){c+=" "+a.name+": "+a.message+" ("+a.number+")"}var d="";if(typeof a=="string"){d=a+"\n"}else{for(var f in a){try{d+=f+": "+a[f]+"\n"}catch(e){}}}d+=P(T.caller);ma(c+"\n"+d,1)}var Ja=/function (\w+)/;function ka(a){var b=Ja.exec(String(a));if(b){return b[1]}return""}function P(a){try{if(!o()&&!(y("safari")||y("konqueror"))&&y("mozilla")){return Error().stack}if(!a)return"";var b="- "+ka(a)+"(";for(var c=0;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40){d=d.substr(0,40)+"..."}b+=d}b+=")\n";b+=P(a.caller);return b}catch(f){return"[Cannot get stack trace]: "+f+"\n"}}var na;var v=null,E=false;function la(){if((v==null||v.closed)&&!E){try{E=true;v=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");v.blur();v.document.open();E=false;var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";Q(a)}catch(b){}}}function ma(a,b){if(!R){if(typeof fa!="undefined"){fa(Y(a))}return}try{var c=(new Date).getTime()-na,d="["+c+"] "+Y(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";v.focus()}}catch(f){}Q(d)}function Q(a){if(!R){return}try{la();v.document.write(a);v.scrollTo(0,1000000)}catch(b){}};function y(a){if(a in D){return D[a]}return D[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var D={};function o(){return y("msie")&&!window.opera};function ua(a){try{return a.parentNode}catch(b){return a}}function wa(a,b){do{if(a===b)return true;b=ua(b)}while(b&&b!==document.body);return false}function X(a,b){if(a==null||a.className==null)return false;if(a.className==b){return true}var c=a.className.split(" ");for(var d=0;d<c.length;d++){if(c[d]==b){return true}}return false}function ia(a,b){if(X(a,b))return;a.className+=" "+b}function za(a,b){if(a.className==null)return;if(a.className==b){a.className="";return}var c=a.className.split(" "),d=[],f=false;for(var e=0;e<c.length;e++){if(c[e]!=b){if(c[e]){d.push(c[e])}}else{f=true}}if(f){a.className=d.join(" ")}}function z(a){var b=a.offsetLeft;if(a.offsetParent!=null)b+=z(a.offsetParent);return b}function u(a){var b=a.offsetTop;if(a.offsetParent!=null)b+=u(a.offsetParent);return b}function W(a){return z(a)+a.offsetWidth}function I(a){return J(a,Ka)}var Ka={wa:function(a){return a.document.body.scrollTop},xa:function(a){return a.document.documentElement.scrollTop},oa:function(a){return a.pageYOffset}};function Aa(a,b,c){var d=u(b),f=d+b.offsetHeight,e=I(a),h=A(a),k=e+h;if(d<e||f>k){var j;if(c=="b"){j=f-h+5}else if(c=="m"){j=(d+f)/2-h/2}else{j=d-5}a.scrollTo(0,j)}}function va(a){return J(a,Ma)}var Ma={wa:function(a){return a.document.body.clientWidth},xa:function(a){return a.document.documentElement.clientWidth},oa:function(a){return a.innerWidth}};function A(a){return J(a,La)}var La={wa:function(a){return a.document.body.clientHeight},xa:function(a){return a.document.documentElement.clientHeight},oa:function(a){return a.innerHeight}};function J(a,b){try{if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat"){return b.xa(a)}else if(o()){return b.wa(a)}}catch(c){}return b.oa(a)}var Fa=/&/g,Pa=/</g,Oa=/>/g;function Y(a){if(!a)return"";return a.replace(Fa,"&amp;").replace(Pa,"&lt;").replace(Oa,"&gt;").replace(Qa,"&quot;")}var Qa=/\"/g;function U(a){return a.srcElement||a.target}function N(a){if(o()){a.cancelBubble=true}else if(a.stopPropagation){a.stopPropagation()}}function ja(a){if(o()){a.returnValue=false}else{a.preventDefault()}}function Z(a){return typeof a!="undefined"}function V(a){var b;if(a.keyCode){b=a.keyCode}else if(a.which){b=a.which}return b}function Ha(a){return document.getElementById(a)}function Ia(a){return document.all[a]}var Ga=document.getElementById?Ha:Ia;function fa(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=Ga("log");if(c){var d="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else{window.status=a}};function r(){}r.raise=function(a){if(typeof Error!="undefined"){throw new Error(a||"Assertion Failed");}else{throw a;}};r.fail=function(a){if(a===undefined)a="Assertion failed";if(!(S===undefined))S(a+"\n");r.raise(a)};r.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";r.fail(b)}};r.equals=function(a,b,c){if(a!=b){if(c===undefined){c="AS_Assert.equals failed: <"+a+"> != <"+b+">"}r.fail(c)}};r.typeOf=function(a,b,c){if(typeof a==b)return;if(a||a==""){try{if(b==r.TYPE_MAP[typeof a]||a instanceof b){return}}catch(d){}}if(c===undefined){if(typeof b=="function"){var f=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(f)b=f[1]}c="AS_Assert.typeOf failed: <"+a+"> not typeof "+b}r.fail(c)};r.TYPE_MAP={string:String,number:Number,"boolean":Boolean};r.numArgs=function(a,b){var c=r.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined){b=c.name+" expected "+a+" arguments  but received "+c.arguments.length}r.fail(b)}};var Na=this;var H="lang_hashCode_",ta=0;function ea(a){if(!a[H]){a[H]=++ta}return a[H]};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,f;if(!a)a=Na;var e=b||[];for(var h=0;h<e.length;h++){c[h]="args["+h+"]"}f="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);d=eval(f);a.__applyTemp__.pop();return d}}if(!Array.prototype.push){Array.prototype.push=function(a){for(var b=0;b<arguments.length;b++){this[this.length]=arguments[b]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){if(!this.length){return}var a=this[this.length-1];this.length--;return a}}Array.prototype.peek=function(){return this[this.length-1]};if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length==0){return}var a=this[0];for(var b=0;b<this.length-1;b++){this[b]=this[b+1]}this.length--;return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(a){var b=arguments.length;for(var c=this.length-1;c>=0;c--){this[c+b]=this[c]}for(var d=0;d<b;d++){this[d]=arguments[d]}return this.length}}if(!Array.prototype.sa){Array.prototype.sa=function(a,b){for(var c=0;c<this.length;c++){a.call(b,this[c],c,this)}}}function da(a,b,c){var d=a.ha||[];d=d.concat(Array.prototype.slice.call(arguments,2));if(typeof a.N!="undefined"){b=a.N}if(typeof a.M!="undefined"){a=a.M}var f=function(){var e=d.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};f.ha=d;f.N=b;f.M=a;return f}Function.prototype.bind=function(a,b){return da.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return da.apply(null,[this,null].concat(Array.prototype.slice.call(arguments)))};Function.prototype.inherits=function(a){var b=function(){};b.prototype=a.prototype;this.Nb=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){for(var b in a){this.prototype[b]=a[b]}if(typeof a["toString"]=="function"&&a["toString"]!=this.prototype["toString"]){this.prototype.toString=a.toString}};Function.prototype.bind=function(a,b){if(typeof this!="function"){throw new Error("Bind must be called as a method of a function object.");}var c=this,d=Array.prototype.splice.call(arguments,1,arguments.length);return function(){var f=d.concat();for(var e=0;e<arguments.length;e++){f.push(arguments[e])}return c.apply(a,f)}};var t,C,ha;(function(){var a={},b=0;function c(e){if(e.eb==null){e.eb=++b}return e.eb}function d(e,h,k,j){var l=c(e),q=c(k);j=!(!j);var K=l+"_"+h+"_"+q+"_"+j;return K}t=function(e,h,k,j){var l=d(e,h,k,j);if(l in a){return l}var q=f.bind(null,l);a[l]={listener:k,proxy:q,event:h,node:e,useCapture:j};if(e.addEventListener){e.addEventListener(h,q,j)}else if(e.attachEvent){e.attachEvent("on"+h,q)}else{throw new Error("Node {"+e+"} does not support event listeners.");}return l};C=function(e,h,k,j){var l=d(e,h,k,j);return ha(l)};ha=function(e){if(!(e in a)){return false}var h=a[e],k=h.proxy,j=h.event,l=h.node,q=h.useCapture;if(l.removeEventListener){l.removeEventListener(j,k,q)}else if(l.detachEvent){l.detachEvent("on"+j,k)}delete a[e];return true};function f(e){var h=Array.prototype.splice.call(arguments,1,arguments.length);return a[e].listener.apply(null,h)}})();;function F(a,b,c){this.Ra=b;if(c){this.T=[];for(var d=0;d<a.length;d++){this.T.push(c+a[d])}}else{this.T=a}}F.prototype.load=function(a){this.xb=a;this.Va=0;var b=this.Ra.getElementsByTagName("head")[0];for(var c=0;c<this.T.length;c++){var d=this.Ra.createElement("script");d.type="text/javascript";if(o()){d.onreadystatechange=this.qa.bind(this,d)}else{d.onload=this.qa.bind(this,d)}d.src=this.T[c];b.appendChild(d)}};F.prototype.qa=function(a){if(o()&&a.readyState!="complete")return;this.Va++;if(this.Va==this.T.length&&this.xb){this.xb()}};var g=g||{};g.global=this;g.provide=function(a){var b=a.split("."),c=g.global;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{c=(c[d]={})}}};g.getObjectByName=function(a){var b=a.split("."),c=g.global;for(var d;d=b.shift();){if(c[d]){c=c[d]}else{return null}}return c};g.globalize=function(a,b){g.mixin(b||g.global,a)};g.addDependency=function(a,b,c){};g.require=function(a){};g.addIncludeRoot=function(a,b){};g.basePath="";g.nullFunction=function(){};g.k={UNDEFINED:"undefined",NUMBER:"number",STRING:"string",BOOLEAN:"boolean",FUNCTION:"function",OBJECT:"object"};g.isDef=function(a){return typeof a!=g.k.UNDEFINED};g.isNull=function(a){return a===null};g.isArray=function(a){return a instanceof Array||g.isObject(a)&&typeof a.join==g.k.FUNCTION&&typeof a.reverse==g.k.FUNCTION};g.isArrayLike=function(a){return g.isObject(a)&&typeof a.length==g.k.NUMBER};g.isDateLike=function(a){return g.isObject(a)&&g.isFunction(a.getFullYear)};g.isString=function(a){return typeof a==g.k.STRING};g.isBoolean=function(a){return typeof a==g.k.BOOLEAN};g.isNumber=function(a){return typeof a==g.k.NUMBER};g.isFunction=function(a){return typeof a==g.k.FUNCTION};g.isObject=function(a){return a!=null&&typeof a==g.k.OBJECT};g.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(g.z)){return a[g.z]}if(!a[g.z]){a[g.z]=String(++g.Jb)}return a[g.z]};g.removeHashCode=function(a){if("removeAttribute"in a){a.removeAttribute(g.z)}try{delete a[g.z]}catch(b){}};g.z="closure_hashCode_";g.Jb=0;g.cloneObject=function(a){if(g.isObject(a)){if(a.clone){return a.clone()}var b=g.isArray(a)?[]:{};for(var c in a){b[c]=g.cloneObject(a[c])}return b}return a};g.bind=function(a,b,c){var d=a.ha||[];d=d.concat(Array.prototype.slice.call(arguments,2));if(a.N){b=a.N}if(a.M){a=a.M}var f=function(){var e=d.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};f.ha=d;f.N=b;f.M=a;return f};g.partial=function(a){return g.bind.apply(null,[a,null].concat(Array.prototype.slice.call(arguments,1)))};g.mixin=function(a,b){for(var c in b){a[c]=b[c]}};g.now=function(){return(new Date).getTime()};g.globalEval=function(a){if(g.global.execScript){g.global.execScript(a,"JavaScript")}else if(g.global.eval){g.global.eval(a)}else{throw Error("goog.globalEval not available");}};g.getMsg=function(a,b){var c=b||{};for(var d in c){a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d])}return a};g.exportSymbol=function(a,b){g.global[a]=b};g.exportProperty=function(a,b,c){a[b]=c};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,f;if(!a)a=g.global;if(!b)b=[];for(var e=0;e<b.length;e++){c[e]="args["+e+"]"}f="oScope.__applyTemp__.peek().("+c.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);d=eval(f);a.__applyTemp__.pop();return d}}Function.prototype.bind=function(a,b){return g.bind.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return g.bind.apply(null,[this,null].concat(Array.prototype.slice.call(arguments)))};Function.prototype.inherits=function(a){function b(){}b.prototype=a.prototype;this.Nb=a.prototype;this.prototype=new b;this.prototype.constructor=this};Function.prototype.mixin=function(a){g.mixin(this.prototype,a)};if(!Array.prototype.push){Array.prototype.push=function(){for(var a=0;a<arguments.length;a++){this[this.length]=arguments[a]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){var a;if(this.length){a=this[this.length-1];this.length--}return a}}Array.prototype.peek=function(){return this[this.length-1]};if(!Array.prototype.shift){Array.prototype.shift=function(){var a;if(this.length){a=this[0];for(var b=0;b<this.length-1;b++){this[b]=this[b+1]}this.length--}return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(){var a=arguments.length;for(var b=this.length-1;b>=0;b--){this[b+a]=this[b]}for(var c=0;c<a;c++){this[c]=arguments[c]}return this.length}};g.net={};g.net.cookies={};g.net.cookies.set=function(a,b,c,d,f){if(/;=/g.test(a)){throw new Error('Invalid cookie name "'+a+'"');}if(/;/g.test(b)){throw new Error('Invalid cookie value "'+b+'"');}if(!g.isDef(c)){c=-1}var e=f?";domain="+f:"",h=d?";path="+d:"",k;if(c<0){k=""}else if(c==0){var j=new Date(1970,1,1);k=";expires="+j.toUTCString()}else{var l=new Date((new Date).getTime()+c*1000);k=";expires="+l.toUTCString()}document.cookie=a+"="+b+e+h+k};g.net.cookies.get=function(a,b){var c=a+"=",d=String(document.cookie);for(var f=-1;(f=d.indexOf(c,f+1))>=0;){var e=f;while(--e>=0){var h=d.charAt(e);if(h==";"){e=-1;break}}if(e==-1){var k=d.indexOf(";",f);if(k<0){k=d.length}return d.substring(f+c.length,k)}}return b};g.net.cookies.remove=function(a,b,c){var d=g.net.cookies.containsKey(a);g.net.cookies.set(a,"",0,b,c);return d};g.net.cookies.$=function(){var a=String(document.cookie),b=a.split(/\s*;\s*/),c=[],d=[],f,e;for(var h=0;e=b[h];h++){f=e.indexOf("=");if(f==-1){c.push("");d.push(e)}else{c.push(e.substring(0,f));d.push(e.substring(f+1))}}return{keys:c,values:d}};g.net.cookies.getKeys=function(){return g.net.cookies.$().keys};g.net.cookies.getValues=function(){return g.net.cookies.$().values};g.net.cookies.isEmpty=function(){return document.cookie==""};g.net.cookies.getCount=function(){var a=String(document.cookie),b=a.split(/\s*;\s*/);return b.length};g.net.cookies.containsKey=function(a){var b={};return g.net.cookies.get(a,b)!==b};g.net.cookies.containsValue=function(a){var b=g.net.cookies.$().values;for(var c=0;c<b.length;c++){if(b[c]==a){return true}}return false};g.net.cookies.clear=function(a){var b=g.net.cookies.$().keys;for(var c=b.length-1;c>=0;c--){g.net.cookies.remove(b[c])}};g.net.cookies.MAX_COOKIE_LENGTH=3950;g.userAgent={};(function(){var a=navigator.userAgent,b=typeof opera!="undefined",c=!b&&a.indexOf("MSIE")!=-1,d=!b&&a.indexOf("Safari")!=-1,f=!b&&navigator.product=="Gecko"&&!d,e=f&&navigator.vendor=="Camino",h=!b&&a.indexOf("Konqueror")!=-1,k=h||d,j,l;if(b){j=opera.version()}else{if(f){l=/rv\:([^\);]+)(\)|;)/}else if(c){l=/MSIE\s+([^\);]+)(\)|;)/}else if(d){l=/AppleWebKit\/(\S+)/}else if(h){l=/Konqueror\/([^\);]+)(\)|;)/}if(l){l.test(a);j=RegExp.$1}}var q=navigator.platform,K=q.indexOf("Mac")!=-1,xa=q.indexOf("Win")!=-1,ya=q.indexOf("Linux")!=-1;g.userAgent.OPERA=b;g.userAgent.IE=c;g.userAgent.GECKO=f;g.userAgent.CAMINO=e;g.userAgent.KONQUEROR=h;g.userAgent.SAFARI=d;g.userAgent.KHTML=k;g.userAgent.VERSION=j;g.userAgent.PLATFORM=navigator.platform;g.userAgent.MAC=K;g.userAgent.WINDOWS=xa;g.userAgent.LINUX=ya})();g.userAgent.compare=function(a,b){if(!isNaN(a)&&!isNaN(b)){return a-b}var c=a.split("."),d=b.split("."),f=Math.min(c.length,d.length);for(var e=0;e<f;e++){if(typeof d[e]=="undefined"){return 1}if(typeof c[e]==

⌨️ 快捷键说明

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