理解控制器在Angular中,一个容器就是一个JavaScript构造函数,用来增强Angular Scope。当一个控制器通过ng-controller指令绑定到DOM,Angular就会实例化一个新的控制器对象,使用特定的控制器的构造函数。一个child scope就创建好了,这个child s...
分类:
Web程序 时间:
2015-04-15 21:07:15
阅读次数:
143
换编译器编译和使用log4cxx时遇到c2252错误error C2252: an explicit instantiation of a template can only occur at namespace scope搜索了一下解决方案,在log4cxx邮件列表有如下关于该bug解决方案的描述...
分类:
其他好文 时间:
2015-04-15 16:47:00
阅读次数:
340
引言:在前面的Action操作中,关键就是Action中的exectue方法,但是此方法并没有request、session、application等对象作为参数,自然就不能利用这些对象来操作。下面我们建立struts2scope项目,并用四种方式来获取这些对象:方式一、与Servlet解耦合的非I...
分类:
其他好文 时间:
2015-04-15 11:02:47
阅读次数:
163
主要内容:解决MDP问题的算法:离散化;模型MDP的同化型; (model/similator)拟合值迭代算法;Q函数;近似政策迭代;笔记转自:http://blog.csdn.net/dark_scope/article/details/8252969连续状态的MDP之前我们的状态都是离散的,如果...
分类:
其他好文 时间:
2015-04-14 23:11:37
阅读次数:
470
要理解javascript函数的定义与执行,首先需要知道这几个重要的概念,现在可以先知道稍后再理解!函数的执行环境(excution context)、活动对象(call object)、作用域(scope)、作用域链(scope chain)。接下来,我们以这个函数为例进行分析:步骤:1、设置作用...
分类:
编程语言 时间:
2015-04-14 12:36:46
阅读次数:
163
http://blog.csdn.net/dark_scope/article/details/8880547 1 bool find(int x){ 2 int i,j; 3 for (j=1;j<=m;j++){ //扫描每个妹子 4 if (line[x]...
分类:
编程语言 时间:
2015-04-14 00:35:06
阅读次数:
164
linkstate/ls.cc:396:28: required from here
linkstate/ls.h:137:58: 错误:‘erase’ was not declared in this scope, and no decl...
分类:
其他好文 时间:
2015-04-13 20:55:50
阅读次数:
840
/* 修改scope上的sb对象的name属性*///方法1:直接修改sb对象. 不会自动触发监听函数scope.sb.name = 'Tonny'; //方法2:使用scope的$apply方法,在数据修改后会自动触发监听函数scope.$apply("sb.name = 'Tonny'")...
分类:
其他好文 时间:
2015-04-13 18:48:58
阅读次数:
108
1. modified at file scope将数组中的变量转化为由define定义的形式2. C代码中,bool默认没有定义,因此需要用int类型替换,shiiiiiiiit!3.error: two or more data types in declaration specifiers结构...
分类:
其他好文 时间:
2015-04-13 12:16:36
阅读次数:
157
修改Oracle最大连接数1、修改Oracle最大连接数的方法 a、以sysdba身份登陆PL/SQL 或者 Worksheet b、查询目前连接数 show parameter processes; c、更改系统连接数 alter system set processes=1000 scope=s...
分类:
数据库 时间:
2015-04-11 14:47:07
阅读次数:
142