ng-app The ng-app directive tells AngularJS that the element is the "owner" of an AngularJS application.ng-model The ng-model directive binds the val....
分类:
Web程序 时间:
2014-08-21 06:19:13
阅读次数:
236
利用AngularJS的directive,我们可以很方便的实现检验功能。代码如下: 1 // 密码验证directive 2 ftitAppModule.directive('pwCheck', [function () { 3 return { 4 require: 'n...
分类:
Web程序 时间:
2014-08-20 12:26:42
阅读次数:
222
SQLPlus directive "WHENEVER SQLERROR EXIT 1" will return a specified code when any SQL error throwed when run a sql file.Then we can catch the return ...
分类:
数据库 时间:
2014-08-18 18:06:22
阅读次数:
279
E 表示该指令是一个element; A 表示该指令是attribute; C 表示该指令是class; M 表示该指令是注视实例如下:原帖:www.thinkster.io/angularjs/rep5re7gTM/angularjs-directive-restrictionsWhile it’...
分类:
其他好文 时间:
2014-08-13 18:00:16
阅读次数:
285
网上找了好久没有正确的,后面直接在http://wiki.nginx.org/Drupal
上找到原文,但原文中复制过来会出现个 'root' rewrite directive is duplicate 错误和 server 第一列的错误。
对比aliyun上的预先设定的rewrite 发现它们都没有server {} 这个名,并且这个位置也在nginx -t 时报错了。
注释了报错的位置...
分类:
其他好文 时间:
2014-08-10 10:28:50
阅读次数:
318
坑1: directive要用到controller里面的东西呢,有两种办法: 通过$scope.xxx来设置的,直接用xxx引用 通过controller function 里面的 this.xxx 设置的,要通过controllerName.xxx引用 爬爬墙,更健康:附Angular...
分类:
其他好文 时间:
2014-08-07 19:25:30
阅读次数:
210
翻译:https://docs.angularjs.org/api/ng/directive/ngApp使用这个指令去 自动引导 一个AngularJS 应用程序。 ngApp指令规定了html中哪个元素是AngularJS的执行根目录,或者说范围。典型的用法就是把这个属性放到 或者 标签上。一个....
分类:
移动开发 时间:
2014-08-07 18:02:30
阅读次数:
299
restrcit属性说明 restrict: EACM中的任意一个之母。它是用来限制指令的声明格式的。 E?-?元素名称:<my-directive></my-directive>
A?-?属性:?<div?my-directive="exp">?</div>
C?-?类名:<div?class...
分类:
其他好文 时间:
2014-07-30 12:38:04
阅读次数:
199
在将命令行下的C++程序转换成MFC窗口程序时一般会提示下面这种错误:fatal error C1010: unexpected end of file while looking for precompiled header directive解决办法:在该文件第一行(记住一定要是第一行)加入#i...
分类:
编程语言 时间:
2014-07-30 11:31:53
阅读次数:
214