合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
### 14.2. 定义模块 定义模块的方法是使用 `angular.module` 。调用时声明了对其它模块的依赖,并定义了“初始化”函数。 var my_module = angular.module('MyModule', [], function(){ console.log('here'); }); 这段代码定义了一个叫做 `MyModule` 的模块, `my_module` 这个引用可以在接下来做其它的一些事,比如定义服务。