layui.js:1 Uncaught TypeError: c.push is not a function
layui.js:1 Uncaught TypeError: c.push is not a function
at f (layui.js:1)
at r.use (layui.js:1)
at index:45
总结
引用多个组件时 注意加上 [ ]
如下:
layui.config({
base: ‘…/…/…/layuiadmin/’ //静态资源所在路径
, version: Math.random()
}).extend({
index: ‘lib/index’ //主入口模块
}).use( [‘table’, ‘form’ ], function () {