Browse Source

优化 all 模块代码书写规范

pull/1315/head
贤心 1 year ago
parent
commit
5fba5f051b
  1. 11
      src/modules/all.js

11
src/modules/all.js

@ -5,7 +5,8 @@
layui.define(function(){
var mods = []
,builtin = layui.cache.builtin;
var builtin = layui.cache.builtin;
layui.each(builtin, function(modName){
(modName === 'all' || modName === 'layui.all') || mods.push(modName);
});
@ -15,12 +16,12 @@ layui.define(function(){
}(), function(exports){
"use strict";
var MOD_NAME = 'all'
var MOD_NAME = 'all';
// 外部接口
,all = {
config: {}
,time: function(){
var all = {
config: {},
time: function(){
var time = new Date().getTime() - layui.cache.startTime;
delete layui.cache.startTime;
return time;

Loading…
Cancel
Save