【文件属性】:
文件名称:blendjs:轻量级 AMD 兼容模块加载器
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-16 15:48:06
javascript amd JavaScript
Blend.js
轻量级异步模块定义(AMD)库
用法
// module `a` depend on `b`
define ( 'a' , [ 'b' ] , function ( b ) {
b ( ) ;
} )
// module `b` depend on `c` and `d`
define ( 'b' , [ 'c' , 'd' ] , function ( c , d ) {
return function ( ) {
console . log ( c + d ) ;
}
} )
// module `c` depend on nothing
define ( 'c' , function ( ) {
return 2 ;
} )
// module `d` depend on nothing
define ( 'd' , function ( e ) {
【文件预览】:
blendjs-master
----.gitignore(50B)
----package.json(545B)
----blend.min.js(2KB)
----README.md(715B)
----blend.js(4KB)
----bower.json(409B)