Files
HTCloud/HT.Cloud.Web/wwwroot/lib/layui/modules/all.js

33 lines
632 B
JavaScript
Raw Normal View History

2024-11-14 09:01:37 +08:00
/**
2023-03-10 16:39:21 +08:00
* 用于加载所有内置模块
* MIT Licensed
*/
layui.define(function(){
var mods = []
2024-11-14 09:01:55 +08:00
var builtin = layui.cache.builtin;
2023-03-10 16:39:21 +08:00
layui.each(builtin, function(modName){
(modName === 'all' || modName === 'layui.all') || mods.push(modName);
});
layui.cache.startTime = new Date().getTime();
return mods;
}(), function(exports){
"use strict";
2024-11-14 09:01:55 +08:00
var MOD_NAME = 'all';
2023-03-10 16:39:21 +08:00
2024-11-14 09:01:55 +08:00
// 外部接口
var all = {
config: {},
time: function(){
2023-03-10 16:39:21 +08:00
var time = new Date().getTime() - layui.cache.startTime;
delete layui.cache.startTime;
return time;
}()
};
exports(MOD_NAME, all);
});