add:AMD相关。
This commit is contained in:
20
09-Node.js/02-JavaScript模块化03:CMD.md
Normal file
20
09-Node.js/02-JavaScript模块化03:CMD.md
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
|
||||
## CMD的基本语法
|
||||
|
||||
### CMD的概念
|
||||
|
||||
**CMD**(Asynchronous Module Definition):异步模块定义。AMD专门用于浏览器端,模块的加载是异步的。
|
||||
|
||||
[**CMD规范**](https://github.com/amdjs/amdjs-api):是 **[SeaJS](http://requirejs.org/)** 在推广过程中对模块化定义的规范化产出。
|
||||
|
||||
SeaJS:一个基于CMD规范实现的模块化开发解决方案。
|
||||
|
||||
|
||||
### 暴露模块的方式
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user