📄 dojo.js
字号:
} var cfg = _77[i].getAttribute("djConfig"); if (cfg) { var _7d = eval("({ " + cfg + " })"); for (var x in _7d) { dojo.config[x] = _7d[x]; } } break; } } } d.baseUrl = d.config.baseUrl; var n = navigator; var dua = n.userAgent; var dav = n.appVersion; var tv = parseFloat(dav); d.isOpera = (dua.indexOf("Opera") >= 0) ? tv : 0; var idx = Math.max(dav.indexOf("WebKit"), dav.indexOf("Safari"), 0); if (idx) { d.isSafari = parseFloat(dav.split("Version/")[1]) || ((parseFloat(dav.substr(idx + 7)) >= 419.3) ? 3 : 2) || 2; } d.isAIR = (dua.indexOf("AdobeAIR") >= 0) ? 1 : 0; d.isKhtml = (dav.indexOf("Konqueror") >= 0 || d.isSafari) ? tv : 0; d.isMozilla = d.isMoz = (dua.indexOf("Gecko") >= 0 && !d.isKhtml) ? tv : 0; d.isFF = d.isIE = 0; if (d.isMoz) { d.isFF = parseFloat(dua.split("Firefox/")[1]) || 0; } if (document.all && !d.isOpera) { d.isIE = parseFloat(dav.split("MSIE ")[1]) || 0; } if (dojo.isIE && window.location.protocol === "file:") { dojo.config.ieForceActiveXXhr = true; } var cm = document.compatMode; d.isQuirks = cm == "BackCompat" || cm == "QuirksMode" || d.isIE < 6; d.locale = dojo.config.locale || (d.isIE ? n.userLanguage : n.language).toLowerCase(); d._XMLHTTP_PROGIDS = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "Msxml2.XMLHTTP.4.0"]; d._xhrObj = function () { var _85 = null; var _86 = null; if (!dojo.isIE || !dojo.config.ieForceActiveXXhr) { try { _85 = new XMLHttpRequest(); } catch (e) { } } if (!_85) { for (var i = 0; i < 3; ++i) { var _88 = d._XMLHTTP_PROGIDS[i]; try { _85 = new ActiveXObject(_88); } catch (e) { _86 = e; } if (_85) { d._XMLHTTP_PROGIDS = [_88]; break; } } } if (!_85) { throw new Error("XMLHTTP not available: " + _86); } return _85; }; d._isDocumentOk = function (_89) { var _8a = _89.status || 0; return (_8a >= 200 && _8a < 300) || _8a == 304 || _8a == 1223 || (!_8a && (location.protocol == "file:" || location.protocol == "chrome:")); }; var _8b = window.location + ""; var _8c = document.getElementsByTagName("base"); var _8d = (_8c && _8c.length > 0); d._getText = function (uri, _8f) { var _90 = this._xhrObj(); if (!_8d && dojo._Url) { uri = (new dojo._Url(_8b, uri)).toString(); } if (d.config.cacheBust) { uri += (uri.indexOf("?") == -1 ? "?" : "&") + String(d.config.cacheBust).replace(/\W+/g, ""); } _90.open("GET", uri, false); try { _90.send(null); if (!d._isDocumentOk(_90)) { var err = Error("Unable to load " + uri + " status:" + _90.status); err.status = _90.status; err.responseText = _90.responseText; throw err; } } catch (e) { if (_8f) { return null; } throw e; } return _90.responseText; }; })(); dojo._initFired = false; dojo._loadInit = function (e) { dojo._initFired = true; var _93 = (e && e.type) ? e.type.toLowerCase() : "load"; if (arguments.callee.initialized || (_93 != "domcontentloaded" && _93 != "load")) { return; } arguments.callee.initialized = true; if ("_khtmlTimer" in dojo) { clearInterval(dojo._khtmlTimer); delete dojo._khtmlTimer; } if (dojo._inFlightCount == 0) { dojo._modulesLoaded(); } }; dojo._fakeLoadInit = function () { dojo._loadInit({type:"load"}); }; if (!dojo.config.afterOnLoad) { if (document.addEventListener) { if (dojo.isOpera || dojo.isFF >= 3 || (dojo.isMoz && dojo.config.enableMozDomContentLoaded === true)) { document.addEventListener("DOMContentLoaded", dojo._loadInit, null); } window.addEventListener("load", dojo._loadInit, null); } if (dojo.isAIR) { window.addEventListener("load", dojo._loadInit, null); } else { if (/(WebKit|khtml)/i.test(navigator.userAgent)) { dojo._khtmlTimer = setInterval(function () { if (/loaded|complete/.test(document.readyState)) { dojo._loadInit(); } }, 10); } } } (function () { var _w = window; var _95 = function (_96, fp) { var _98 = _w[_96] || function () { }; _w[_96] = function () { fp.apply(_w, arguments); _98.apply(_w, arguments); }; }; if (dojo.isIE) { if (!dojo.config.afterOnLoad) { document.write("<scr" + "ipt defer src=\"//:\" " + "onreadystatechange=\"if(this.readyState=='complete'){" + dojo._scopeName + "._loadInit();}\">" + "</scr" + "ipt>"); } var _99 = true; _95("onbeforeunload", function () { _w.setTimeout(function () { _99 = false; }, 0); }); _95("onunload", function () { if (_99) { dojo.unloaded(); } }); try { document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); document.createStyleSheet().addRule("v\\:*", "behavior:url(#default#VML)"); } catch (e) { } } else { _95("onbeforeunload", function () { dojo.unloaded(); }); } })(); } (function () { var mp = dojo.config["modulePaths"]; if (mp) { for (var _9b in mp) { dojo.registerModulePath(_9b, mp[_9b]); } } })(); if (dojo.config.isDebug) { dojo.require("dojo._firebug.firebug"); } if (dojo.config.debugAtAllCosts) { dojo.config.useXDomain = true; dojo.require("dojo._base._loader.loader_xd"); dojo.require("dojo._base._loader.loader_debug"); dojo.require("dojo.i18n"); } if (!dojo._hasResource["dojo._base.lang"]) { dojo._hasResource["dojo._base.lang"] = true; dojo.provide("dojo._base.lang"); dojo.isString = function (it) { return !!arguments.length && it != null && (typeof it == "string" || it instanceof String); }; dojo.isArray = function (it) { return it && (it instanceof Array || typeof it == "array"); }; dojo.isFunction = (function () { var _9e = function (it) { return it && (typeof it == "function" || it instanceof Function); }; return dojo.isSafari ? function (it) { if (typeof it == "function" && it == "[object NodeList]") { return false; } return _9e(it); } : _9e; })(); dojo.isObject = function (it) { return it !== undefined && (it === null || typeof it == "object" || dojo.isArray(it) || dojo.isFunction(it)); }; dojo.isArrayLike = function (it) { var d = dojo; return it && it !== undefined && !d.isString(it) && !d.isFunction(it) && !(it.tagName && it.tagName.toLowerCase() == "form") && (d.isArray(it) || isFinite(it.length)); }; dojo.isAlien = function (it) { return it && !dojo.isFunction(it) && /\{\s*\[native code\]\s*\}/.test(String(it)); }; dojo.extend = function (_a5, _a6) { for (var i = 1, l = arguments.length; i < l; i++) { dojo._mixin(_a5.prototype, arguments[i]); } return _a5; }; dojo._hitchArgs = function (_a9, _aa) { var pre = dojo._toArray(arguments, 2); var _ac = dojo.isString(_aa); return function () { var _ad = dojo._toArray(arguments); var f = _ac ? (_a9 || dojo.global)[_aa] : _aa; return f && f.apply(_a9 || this, pre.concat(_ad)); }; }; dojo.hitch = function (_af, _b0) { if (arguments.length > 2) { return dojo._hitchArgs.apply(dojo, arguments); } if (!_b0) { _b0 = _af; _af = null; } if (dojo.isString(_b0)) { _af = _af || dojo.global; if (!_af[_b0]) { throw (["dojo.hitch: scope[\"", _b0, "\"] is null (scope=\"", _af, "\")"].join("")); } return function () { return _af[_b0].apply(_af, arguments || []); }; } return !_af ? _b0 : function () { return _b0.apply(_af, arguments || []); }; }; dojo.delegate = dojo._delegate = function (obj, _b2) { function TMP() { } TMP.prototype = obj; var tmp = new TMP(); if (_b2) { dojo.mixin(tmp, _b2); } return tmp; }; dojo.partial = function (_b4) { var arr = [null]; return dojo.hitch.apply(dojo, arr.concat(dojo._toArray(arguments))); }; dojo._toArray = function (obj, _b7, _b8) { var arr = _b8 || []; for (var x = _b7 || 0; x < obj.length; x++) { arr.push(obj[x]); } return arr; }; dojo.clone = function (o) { if (!o) { return o; } if (dojo.isArray(o)) { var r = []; for (var i = 0; i < o.length; ++i) { r.push(dojo.clone(o[i])); } return r; } if (!dojo.isObject(o)) { return o; } if (o.nodeType && o.cloneNode) { return o.cloneNode(true); } if (o instanceof Date) { return new Date(o.getTime()); } var r = new o.constructor(); for (var i in o) { if (!(i in r) || r[i] != o[i]) { r[i] = dojo.clone(o[i]); } } return r; }; dojo.trim = function (str) { return str.replace(/^\s\s*/, "").replace(/\s\s*$/, ""); }; } if (!dojo._hasResource["dojo._base.declare"]) { dojo._hasResource["dojo._base.declare"] = true; dojo.provide("dojo._base.declare"); dojo.declare = function (_bf, _c0, _c1) { var dd = arguments.callee, _c3; if (dojo.isArray(_c0)) { _c3 = _c0; _c0 = _c3.shift(); } if (_c3) { dojo.forEach(_c3, function (m) { if (!m) { throw (_bf + ": mixin #" + i + " is null"); } _c0 = dd._delegate(_c0, m); }); } var _c5 = (_c1 || 0).constructor, _c6 = dd._delegate(_c0), fn; for (var i in _c1) { if (dojo.isFunction(fn = _c1[i]) && !0[i]) { fn.nom = i; } } dojo.extend(_c6, {declaredClass:_bf, _constructor:_c5, preamble:null}, _c1 || 0); _c6.prototype.constructor = _c6; return dojo.setObject(_bf, _c6); }; dojo.mixin(dojo.declare, {_delegate:function (_c9, _ca) { var bp = (_c9 || 0).prototype, mp = (_ca || 0).prototype; var _cd = dojo.declare._makeCtor(); dojo.mixin(_cd, {superclass:bp, mixin:mp, extend:dojo.declare._extend}); if (_c9) { _cd.prototype = dojo._delegate(bp); } dojo.extend(_cd, dojo.declare._core, mp || 0, {_constructor:null, preamble:null}); _cd.prototype.constructor = _cd; _cd.prototype.declaredClass = (bp || 0).declaredClass + "_" + (mp || 0).declaredClass; return _cd; }, _extend:function (_ce) { for (var i in _ce) { if (dojo.isFunction(fn = _ce[i]) && !0[i]) { fn.nom = i; } } dojo.extend(this, _ce); }, _makeCtor:function () { return function () { this._construct(arguments); }; }, _core:{_construct:function (_d0) { var c = _d0.callee, s = c.superclass, ct = s && s.constructor, m = c.mixin, mct = m && m.constructor, a = _d0, ii, fn; if (a[0]) { if (((fn = a[0].preamble))) { a = fn.apply(this, a) || a; } } if ((fn = c.prototype.preamble)) { a = fn.apply(this, a) || a; } if (ct && ct.apply) { ct.apply(this, a); } if (mct && mct.apply) { mct.apply(this, a); } if ((ii = c.prototype._constructor)) { ii.apply(this, _d0); } if (this.constructor.prototype == c.prototype && (ct = this.postscript)) { ct.apply(this, _d0); } }, _findMixin:function (_d9) { var c = this.constructor, p, m; while (c) { p = c.superclass; m = c.mixin; if (m == _d9 || (m instanceof _d9.constructor)) { return p; } if (m && (m = m._findMixin(_d9))) { return m; } c = p && p.constructor; } }, _findMethod:function (_dd, _de, _df, has) { var p = _df, c, m, f; do { c = p.constructor; m = c.mixin; if (m && (m = this._findMethod(_dd, _de, m, has))) { return m; } if ((f = p[_dd]) && (has == (f == _de))) { return p; } p = c.superclass; } while (p); return !has && (p = this._findMixin(_df)) && this._findMethod(_dd, _de, p, has); }, inherited:function (_e5, _e6, _e7) { var a = arguments; if (!dojo.isString(a[0])) { _e7 = _e6; _e6 = _e5; _e5 = _e6.callee.nom; } a = _e7 || _e6; var c = _e6.callee, p = this.constructor.prototype, fn, mp; if (this[_e5] != c || p[_e5] == c) { mp = this._findMethod(_e5, c, p, true); if (!mp) { throw (this.declaredClass + ": inherited method \"" + _e5 + "\" mismatch"); } p = this._findMethod(_e5, c, mp, false); } fn = p && p[_e5]; if (!fn) { throw (mp.declaredClass + ": inherited method \"" + _e5 + "\" not found"); } return fn.apply(this, a); }}}); } if (!dojo._hasResource["dojo._base.connect"]) { dojo._hasResource["dojo._base.connect"] = true; dojo.provide("dojo._base.connect"); dojo._listener = {getDispatcher:function () { return function () { var ap = Array.prototype, c = arguments.callee, ls = c._listeners, t = c.target; var r = t && t.apply(this, arguments); for (var i in ls) { if (!(i in ap)) { ls[i].apply(this, arguments); } } return r;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -