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

📄 decorator.js

📁 原名JSPackager
💻 JS
字号:
$JSI.addCacheScript('js/html/decorator.js',function(){this.hook = function(s){return eval(s);};eval(this.varText);function Decorator(ele) {}Decorator.prototype.parent = null;Decorator.prototype.children = null;Decorator.prototype.getContainer = function () {return document.getElementById(this.id);};Decorator.prototype.before = function () {};Decorator.prototype.decorate = function () {};Decorator.prototype.dispose = function () {};var declared = null;var ua = navigator.userAgent;var dns = "http://www.xidea.org/taglib/decorator";function detectFromAttribute() {var ns = document.documentElement.getAttribute("xmlns:d");if (ns) {if (ns == dns) {return true;} else {$log.info("\u53d1\u73b0Decorator\u4fdd\u7559\u524d\u7f00d\u88ab\u5360\u7528", ns);return false;}} else {return false;}}function detectFromOuterHTML() {var str = document.documentElement.outerHTML;return str.indexOf(dns) > 0;}if (ua.indexOf(" MSIE ") > 0) {var ns = document.namespaces;if (ns) {declared = false;for (var i = ns.length - 1; i >= 0; i--) {if (ns.item(i).name.toLowerCase() == "d") {if (ns.item(i).urn == dns) {declared = true;} else {$log.info("\u53d1\u73b0Decorator\u4fdd\u7559\u524d\u7f00d\u88ab\u5360\u7528", ns.item(i).urn);}break;}}} else {declared = detectFromOuterHTML();}if (declared && ua.indexOf(" Opera ") < 0) {document.write("<style>d\\:*{behavior:url(" + $package.scriptBase + "decorator.htc)}</style>");}} else {if (ua.indexOf("Gecko/") > 0) {declared = detectFromAttribute();} else {if (detectFromAttribute()) {declared = true;} else {if (document.documentElement.outerHTML) {declared = detectFromOuterHTML();} else {declared = null;}}}}Decorator.declared = declared;});

⌨️ 快捷键说明

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