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

📄 yuiloader-debug.js

📁 这是YUI的源码及相关示例。里面有很多很炫的Javascript效果。
💻 JS
📖 第 1 页 / 共 5 页
字号:
         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.3.1/build/animation/animation-min.js"], &#123;         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes         * &nbsp;&nbsp;&#125;);         * </pre>         * @return {tId: string} an object containing info about the transaction         */        script: function(url, opts) { return _queue("script", url, opts); },        /**         * Fetches and inserts one or more css link nodes into the          * head of the current document or the document in a specified         * window.         * @method css         * @static         * @param url {string} the url or urls to the css file(s)         * @param opts Options:          * <dl>         * <dt>onSuccess</dt>         * <dd>         * callback to execute when the css file(s) are finished loading         * The callback receives an object back with the following         * data:         * <dl>win</dl>         * <dd>the window the link nodes(s) were inserted into</dd>         * <dt>data</dt>         * <dd>the data object passed in when the request was made</dd>         * <dt>nodes</dt>         * <dd>An array containing references to the nodes that were         * inserted</dd>         * <dt>purge</dt>         * <dd>A function that, when executed, will remove the nodes         * that were inserted</dd>         * <dt>         * </dl>         * </dd>         * <dt>scope</dt>         * <dd>the execution context for the callbacks</dd>         * <dt>win</dt>         * <dd>a window other than the one the utility occupies</dd>         * <dt>data</dt>         * <dd>         * data that is supplied to the callbacks when the nodes(s) are         * loaded.         * </dd>         * <dt>insertBefore</dt>         * <dd>node or node id that will become the new node's nextSibling</dd>         * <dt>charset</dt>         * <dd>Node charset, default utf-8</dd>         * </dl>         * <pre>         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.3.1/build/menu/assets/skins/sam/menu.css");         * </pre>         * <pre>         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.3.1/build/menu/assets/skins/sam/menu.css",         * </pre>         * @return {tId: string} an object containing info about the transaction         */        css: function(url, opts) {            return _queue("css", url, opts);         }    };}();YAHOO.register("get", YAHOO.util.Get, {version: "2.6.0", build: "1321"});/** * Provides dynamic loading for the YUI library.  It includes the dependency * info for the library, and will automatically pull in dependencies for * the modules requested.  It supports rollup files (such as utilities.js * and yahoo-dom-event.js), and will automatically use these when * appropriate in order to minimize the number of http connections * required to load all of the dependencies. *  * @module yuiloader * @namespace YAHOO.util *//** * YUILoader provides dynamic loading for YUI. * @class YAHOO.util.YUILoader * @todo *      version management, automatic sandboxing */(function() {    var Y=YAHOO, util=Y.util, lang=Y.lang, env=Y.env,        PROV = "_provides", SUPER = "_supersedes",        REQ = "expanded", AFTER = "_after";     var YUI = {        dupsAllowed: {'yahoo': true, 'get': true},        /*         * The library metadata for the current release  The is the default         * value for YAHOO.util.YUILoader.moduleInfo         * @property YUIInfo         * @static         */        info: {    // 'root': '2.5.2/build/',    // 'base': 'http://yui.yahooapis.com/2.5.2/build/',    'root': '2.6.0/build/',    'base': 'http://yui.yahooapis.com/2.6.0/build/',    'comboBase': 'http://yui.yahooapis.com/combo?',    'skin': {        'defaultSkin': 'sam',        'base': 'assets/skins/',        'path': 'skin.css',        'after': ['reset', 'fonts', 'grids', 'base'],        'rollup': 3    },    dupsAllowed: ['yahoo', 'get'],    'moduleInfo': {        'animation': {            'type': 'js',            'path': 'animation/animation-min.js',            'requires': ['dom', 'event']        },        'autocomplete': {            'type': 'js',            'path': 'autocomplete/autocomplete-min.js',            'requires': ['dom', 'event', 'datasource'],            'optional': ['connection', 'animation'],            'skinnable': true        },        'base': {            'type': 'css',            'path': 'base/base-min.css',            'after': ['reset', 'fonts', 'grids']        },        'button': {            'type': 'js',            'path': 'button/button-min.js',            'requires': ['element'],            'optional': ['menu'],            'skinnable': true        },        'calendar': {            'type': 'js',            'path': 'calendar/calendar-min.js',            'requires': ['event', 'dom'],            'skinnable': true        },        'carousel': {            'type': 'js',            'path': 'carousel/carousel-beta-min.js',            'requires': ['element'],            'optional': ['animation'],            'skinnable': true        },        'charts': {            'type': 'js',            'path': 'charts/charts-experimental-min.js',            'requires': ['element', 'json', 'datasource']        },        'colorpicker': {            'type': 'js',            'path': 'colorpicker/colorpicker-min.js',            'requires': ['slider', 'element'],            'optional': ['animation'],            'skinnable': true        },        'connection': {            'type': 'js',            'path': 'connection/connection-min.js',            'requires': ['event']        },        'container': {            'type': 'js',            'path': 'container/container-min.js',            'requires': ['dom', 'event'],            // button is also optional, but this creates a circular             // dependency when loadOptional is specified.  button            // optionally includes menu, menu requires container.            'optional': ['dragdrop', 'animation', 'connection'],            'supersedes': ['containercore'],            'skinnable': true        },        'containercore': {            'type': 'js',            'path': 'container/container_core-min.js',            'requires': ['dom', 'event'],            'pkg': 'container'        },        'cookie': {            'type': 'js',            'path': 'cookie/cookie-min.js',            'requires': ['yahoo']        },        'datasource': {            'type': 'js',            'path': 'datasource/datasource-min.js',            'requires': ['event'],            'optional': ['connection']        },        'datatable': {            'type': 'js',            'path': 'datatable/datatable-min.js',            'requires': ['element', 'datasource'],            'optional': ['calendar', 'dragdrop', 'paginator'],            'skinnable': true        },        'dom': {            'type': 'js',            'path': 'dom/dom-min.js',            'requires': ['yahoo']        },        'dragdrop': {            'type': 'js',            'path': 'dragdrop/dragdrop-min.js',            'requires': ['dom', 'event']        },        'editor': {            'type': 'js',            'path': 'editor/editor-min.js',            'requires': ['menu', 'element', 'button'],            'optional': ['animation', 'dragdrop'],            'supersedes': ['simpleeditor'],            'skinnable': true        },        'element': {            'type': 'js',            'path': 'element/element-beta-min.js',            'requires': ['dom', 'event']        },        'event': {            'type': 'js',            'path': 'event/event-min.js',            'requires': ['yahoo']        },        'fonts': {            'type': 'css',            'path': 'fonts/fonts-min.css'        },        'get': {            'type': 'js',            'path': 'get/get-min.js',            'requires': ['yahoo']        },        'grids': {            'type': 'css',            'path': 'grids/grids-min.css',            'requires': ['fonts'],            'optional': ['reset']        },        'history': {            'type': 'js',            'path': 'history/history-min.js',            'requires': ['event']        },         'imagecropper': {             'type': 'js',             'path': 'imagecropper/imagecropper-beta-min.js',             'requires': ['dom', 'event', 'dragdrop', 'element', 'resize'],             'skinnable': true         },         'imageloader': {            'type': 'js',            'path': 'imageloader/imageloader-min.js',            'requires': ['event', 'dom']         },         'json': {            'type': 'js',            'path': 'json/json-min.js',            'requires': ['yahoo']         },         'layout': {             'type': 'js',             'path': 'layout/layout-min.js',             'requires': ['dom', 'event', 'element'],             'optional': ['animation', 'dragdrop', 'resize', 'selector'],             'skinnable': true         },         'logger': {            'type': 'js',            'path': 'logger/logger-min.js',            'requires': ['event', 'dom'],            'optional': ['dragdrop'],            'skinnable': true        },        'menu': {            'type': 'js',            'path': 'menu/menu-min.js',            'requires': ['containercore'],            'skinnable': true        },        'paginator': {            'type': 'js',            'path': 'paginator/paginator-min.js',            'requires': ['element'],            'skinnable': true        },        'profiler': {            'type': 'js',            'path': 'profiler/profiler-min.js',            'requires': ['yahoo']        },        'profilerviewer': {            'type': 'js',            'path': 'profilerviewer/profilerviewer-beta-min.js',            'requires': ['profiler', 'yuiloader', 'element'],            'skinnable': true        },        'reset': {            'type': 'css',            'path': 'reset/reset-min.css'        },        'reset-fonts-grids': {            'type': 'css',            'path': 'reset-fonts-grids/reset-fonts-grids.css',            'supersedes': ['reset', 'fonts', 'grids', 'reset-fonts'],            'rollup': 4        },        'reset-fonts': {            'type': 'css',            'path': 'reset-fonts/reset-fonts.css',            'supersedes': ['reset', 'fonts'],            'rollup': 2        },         'resize': {             'type': 'js',             'path': 'resize/resize-min.js',             'requires': ['dom', 'event', 'dragdrop', 'element'],             'optional': ['animation'],             'skinnable': true         },        'selector': {            'type': 'js',            'path': 'selector/selector-beta-min.js',            'requires': ['yahoo', 'dom']        },        'simpleeditor': {            'type': 'js',            'path': 'editor/simpleeditor-min.js',            'requires': ['element'],            'optional': ['containercore', 'menu', 'button', 'animation', 'dragdrop'],            'skinnable': true,            'pkg': 'editor'        },        'slider': {            'type': 'js',            'path': 'slider/slider-min.js',            'requires': ['dragdrop'],            'optional': ['animation'],            'skinnable': true        },

⌨️ 快捷键说明

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