fastadmin requirejs 引入layui
paths里面添加:
'layui': '../libs/layui/layui',
shim里面添加:
'layui':{
deps:['css!../libs/layui/css/layui.css'],
init:function(){
return this.layui.config({dir:'/assets/libs/layui/'});
}
},
使用:
define(['jquery', 'bootstrap', 'backend', 'table', 'form','layui'], function ($, undefined, Backend, Table, Form,undefined) {