iotgateway/IoTGateway/wwwroot/layui/lay/modules/all.js

34 lines
633 B
JavaScript
Raw Normal View History

2021-12-12 06:55:48 +00:00
/**
@Name用于加载所有内置模块
@LicenseMIT
*/
layui.define(function(){
var mods = []
,builtin = layui.cache.builtin;
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";
var MOD_NAME = 'all'
//外部接口
,all = {
config: {}
,time: function(){
var time = new Date().getTime() - layui.cache.startTime;
delete layui.cache.startTime;
return time;
}()
};
exports(MOD_NAME, all);
});