2021-01-30 20:59:12 +08:00

24 lines
607 B
HTML

<script src="{__LAYUI__}/layui.js?v={:get_config('webconfig.version')}"></script>
<script>
var base='{__ADMIN_JS__}/module/';
{if condition=" '[base]'!=='base' "}
base=[base];
{/if}
var moduleArray=[use];
var extendArray=[extend];
var callback=[callback];
var extend={};
if(extendArray){
if(extendArray.length>0){
for(var i=0;i<extendArray.length;i++){
extend[extendArray[i]]=extendArray[i];
}
}
}
layui.config({
base: base,
version:'{:get_config('webconfig.version')}'
}).extend(extend).use(moduleArray, function(){
callback(layui);
});
</script>