前端
文章平均质量分 82
zczhangchaozc
这个作者很懒,什么都没留下…
展开
-
grunt 用法小结
npm install -g grunt-cli 上述命令执行完后,grunt 命令就被加入到你的系统路径中了,以后就可以在任何目录下执行此命令了。 CLI 是如何工作的 每次运行grunt 时,他就利用node提供的require()系统查找本地安装的 Grunt。正是由于这一机制,你可以在项目的任意子目录中运行grunt 。 Grunt 项目 一般需要在你的项目中添加两份文件:pac转载 2014-06-23 18:18:11 · 789 阅读 · 0 评论 -
RequireJS && AngularJS
每个模块define时一定要把 依赖的每一个模块都注入进去。 在 app.js中 定义 sportsStore 模块,并在该模块中定义路径变换, 即 app.config(['$routeProvider', function($routeProvider) { $routeProvider .when("/checkout",{ templateUrl:"views/checkoutS原创 2014-07-03 17:53:36 · 955 阅读 · 0 评论 -
angularJS 小结
Modules When declaring a module, we need to pass two parameters to the method. The first is the name of the module we are creating. The second is the list of dependencies, otherwise known as injec原创 2014-06-11 11:25:50 · 1229 阅读 · 0 评论 -
seaJS && requireJS
RequireJS与SeaJS比较 不同之处 两者的主要区别如下: 1)遵循的规范不同。RequireJS 遵循 AMD(异步模块定义)规范,Sea.js 遵循 CMD (通用模块定义)规范。规范的不同,导致了两者 API 不同。对于依赖的模块,AMD 是提前执行,CMD 是延迟执行。不过 RequireJS 从 2.0 开始,也改成可以延迟执行(根据写法不同,处理方式不同)。CMD 推转载 2014-07-15 17:02:27 · 572 阅读 · 0 评论 -
angular——sportsStore项目的问题与解决
1 How to prevent AngularJS from displaying the view until the Ajax request has been completed (页面)原创 2014-07-04 17:03:17 · 603 阅读 · 0 评论