Web/09-Node.js/02-JavaScript模块化03:CMD.md
2018-04-12 11:13:57 +08:00

21 lines
427 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## CMD的基本语法
### CMD的概念
**CMD**Asynchronous Module Definition异步模块定义。AMD专门用于浏览器端模块的加载是异步的。
[**CMD规范**](https://github.com/amdjs/amdjs-api):是 **[SeaJS](http://requirejs.org/)** 在推广过程中对模块化定义的规范化产出。
SeaJS一个基于CMD规范实现的模块化开发解决方案。
### 暴露模块的方式