发布新版
This commit is contained in:
10
examples/extends/mod1.js
Normal file
10
examples/extends/mod1.js
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
layui.define(['mod2', 'layer'], function(exports){
|
||||
var $ = layui.jquery;
|
||||
|
||||
console.log(layui.mod2, layui.layer, layui.form)
|
||||
|
||||
exports('mod1', {
|
||||
name: 'mod1'
|
||||
})
|
||||
});
|
||||
8
examples/extends/mod2.js
Normal file
8
examples/extends/mod2.js
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
layui.define(['jquery', 'form'], function(exports){
|
||||
console.log(layui.$)
|
||||
|
||||
exports('mod2', {
|
||||
name: 'mod2'
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user