javascript-esquire:轻量级JavaScript脚本加载器和依赖项框架

时间:2021-05-18 08:07:56
【文件属性】:
文件名称:javascript-esquire:轻量级JavaScript脚本加载器和依赖项框架
文件大小:53KB
文件格式:ZIP
更新时间:2021-05-18 08:07:56
JavaScript 绅士 Esquire是一个用于JavaScript的轻量级异步注入框架。 完整的API文档可。 模组 在每个全局范围的基础上共享模块定义; 换句话说,如果在浏览器中运行,则每个window仅定义一次相同的模块;如果在Node.JS下运行,则Node.JS global模块定义一次。 模块由name ,依赖项列表和构造函数定义: Esquire . define ( "myModuleName" , [ 'myFirstDependency' , 'anotherDependency' ] , function ( first , another ) { // the parameters to the constructor are our dependencies, and in this context // "this" means the module itself
【文件预览】:
javascript-esquire-master
----index.js(3KB)
----DEFERS.md(4KB)
----package.json(700B)
----esquire.min.js(11KB)
----test()
--------deferred.test.js(6KB)
--------promise.test.js(13KB)
--------node.test.js(2KB)
--------loader()
--------loader.test.js(3KB)
--------browser()
--------esquire.test.js(31KB)
--------global.test.js(5KB)
--------modules()
----esquire-full.min.js(13KB)
----Gruntfile.js(2KB)
----src()
--------loader.js(6KB)
--------esquire.js(46KB)
--------module-docs()
----ext()
--------grunt.js(2KB)
--------karma.js(3KB)
--------mocha.js(3KB)
----LICENSE.md(9KB)
----.gitignore(21B)
----karma.conf.js(1KB)
----README.md(4KB)

网友评论