首先使用命令行进入你要编辑的web项目目录下;(一)编译浏览项目 1:grunt build 对web项目编译; 2:grunt server 装载(在浏览器上查看页面); 3:ctrl+c 终止进程;(二)发布web项目到IIS上 1:grunt build回车 对web项目编译; 2...
分类:
Web程序 时间:
2014-12-19 12:58:20
阅读次数:
155
第一步: 安装node.js,进入node.js官网(http://nodejs.org/)下载安装相应的node.js版本: 或者直接进入官网点击 INSTALL 自动下载适合你的电脑的node.js版本:安装完成检查node版本 在命令行输入 node -v 回车;如果出现版本号说明安装成功.....
分类:
Web程序 时间:
2014-12-19 12:00:57
阅读次数:
713
模块化怎么分模块AngularJS自己有模块的概念,但只是为controller、direcitive、service等提供一个集合的概念,并没有文件调度的功能。官方推荐的模块分类方法是:angular.module('app',['app.directive','app.controller','...
分类:
Web程序 时间:
2014-12-19 11:47:27
阅读次数:
182
在使用AngularJS中的scope时,会有6个主要陷阱。如果你理解AngularJS背后的概念的话,这6个点其实非常的简单。但是在具体讲述这6个陷阱之前我们先要讲两个其它的概念。概念1: 双向数据绑定双向数据绑定是AngularJS中非常重要的一个部分。一般的绑定对于我们来说已经非常熟悉了。即使...
分类:
Web程序 时间:
2014-12-19 10:02:13
阅读次数:
253
You can use ngModel in your own directives, but there are a few things you'll need to do to get it working properly.ngModel itself is an directive. If...
分类:
Web程序 时间:
2014-12-19 07:02:29
阅读次数:
222
Directive can use another directive though 'require' keyword.angular.module('docsTabsExample', []).directive('myTabs', function() { return { restr...
分类:
Web程序 时间:
2014-12-19 07:02:29
阅读次数:
582
关键代码:/// /// (function (window) { yzTreeUtils = { addMenu: function (zTreeId, menuId) { /// /// 增加右键菜单 /// /// _zTreeID /// ...
分类:
其他好文 时间:
2014-12-19 00:28:58
阅读次数:
632
先对自定义Directive有一个大体的映像myModule.directive('myDirective',function(injectables){ var directiveDefinitionObject={ restrict:string, priori...
分类:
Web程序 时间:
2014-12-18 22:05:56
阅读次数:
337
http://jimhoskins.com/2012/12/17/angularjs-and-apply.htmlhttp://www.cnblogs.com/zhrj000/p/3383898.htmlIf you’ve written a non-trivial amount of code i...
分类:
移动开发 时间:
2014-12-18 14:47:15
阅读次数:
261
介绍有很多可用的工具可以帮助你开发AngularJS 应用,那些非常复杂的框架不在我的讨论范围之中,这也是我开始这系列教程的原因。在第一部分,我们掌握了AngularJS框架的基本结构,开发了第一应用。这篇博文是为那些初学者写到。如果你是一个经验丰富的AngularJS开发者,你可能对揭秘指令或者A...
分类:
Web程序 时间:
2014-12-17 20:32:07
阅读次数:
232