代码拉取完成,页面将自动刷新
//需要配合babel才能这么写
// let components = require.context('./components', true, /\.js$/)
// let cowb = {}
// components.keys().forEach((fileName) => {
// Object.values(components(fileName).default).forEach(r => Object.assign(cowb, r))
// })
import * as array from './modules/array'
import * as util from './modules/util'
import * as bom from './modules/bom'
import * as antdv from './modules/antdv'
import * as cache from './modules/cache'
import * as string from './modules/string'
import * as mock from './modules/mock'
import * as object from './modules/object'
import * as time from './modules/time'
import * as functions from './modules/function'
import * as math from './modules/math'
let _ = {
...math,
...array,
...time,
...util,
...object,
...bom,
...antdv,
...cache,
...string,
...mock,
...functions
}
export default _
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。