QSMP.Web/Content/layui/layui.js

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*!

 @Title: layui
 @Description:经典模块化前端 UI 框架
 @Site: www.layui.com
 @Author: 贤心
 @License:MIT
 */

; !function (win) {
    "use strict";

    var doc = document, config = {
        modules: {} //记录模块物理路径
        , status: {} //记录模块加载状态
        , timeout: 10 //符合规范的模块请求最长等待秒数
        , event: {} //记录模块自定义事件
    }

        , Layui = function () {
            this.v = '2.5.5'; //版本号
        }

        //获取layui所在目录
        , getPath = function () {
            var jsPath = doc.currentScript ? doc.currentScript.src : function () {
                var js = doc.scripts
                    , last = js.length - 1
                    , src;
                for (var i = last; i > 0; i--) {
                    if (js[i].readyState === 'interactive') {
                        src = js[i].src;
                        break;
                    }
                }
                return src || js[last].src;
            }();
            return jsPath.substring(0, jsPath.lastIndexOf('/') + 1);
        }()

        //异常提示
        , error = function (msg) {
            win.console && console.error && console.error('Layui hint: ' + msg);
        }

        , isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]'

        //内置模块
        , modules = {
            layer: 'modules/layer' //弹层
            , laydate: 'modules/laydate' //日期
            , laypage: 'modules/laypage' //分页
            , laytpl: 'modules/laytpl' //模板引擎
            , layim: 'modules/layim' //web通讯
            , layedit: 'modules/layedit' //富文本编辑器
            , form: 'modules/form' //表单集
            , upload: 'modules/upload' //上传
            , transfer: 'modules/transfer' //上传
            , tree: 'modules/tree' //树结构
            , table: 'modules/table' //表格
后面还有 493 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。