Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 angular.bootstrap 和 angularAMD.bootstrap 之间的基本区别是什么。
Angular 使用 Inversion of Control 和依赖注入,而 angularAMD 使用 AMD,它是用 RequireJS 实现的。
管理依赖关系的三种常用方法是 commonJS、AMD 和依赖注入。
这些规范的示例实现是 node、browserify、webpack (commonJS) 和 require (AMD)。注意 webpack 允许用户选择 btw commonJS 或 AMD 语法。