闭包是指有权访问另一个函数作用域中的变量的函数。创建闭包的常见方式为:在一个函数内部创建另一个函数。
“当某个函数被调用时,会创建一个执行环境(execution
context)及相应的作用域链。然后,使用arguments和其他命名参数的值来初始化函数的活动对象(activation ob...
分类:
编程语言 时间:
2014-05-30 20:20:13
阅读次数:
366
示例:public enum EnumTest { FRANK("The given name
of me"), LIU("The family name of me");//两个实例 private String context; private
String ge...
分类:
编程语言 时间:
2014-05-30 18:37:45
阅读次数:
419
就是这个,以前还真没有做过,这不,这次就见识过了。然后希望给自己一份记忆,给你们一份快捷而已。。。 /** * 代码中设置一般selector * *
@param context * @param idNormal * @param idSele...
分类:
其他好文 时间:
2014-05-30 18:03:52
阅读次数:
299
这里涉及到的操作都是引用自Stephen.DALService数据层。数据访问层实现方式在后文中我会仔细的说明,先说明一下数据操作集成的插件。1).InsertAttribute用于插入记录。状态返回值:假定hashtable传递变量名的是context
,那么返回值可通过context[Ins.....
分类:
Web程序 时间:
2014-05-30 14:20:15
阅读次数:
336
同事提交了代码。结果除同事之外,其他人全部编译报错。报错说web.xml中配置的一个bean
没有定义。按照报错提示,各种找,无果。由于代码全部都是提交到svn主干,之前也没有做过备份,只能一步一步删除同事提交的代码,进行还原。奇葩事情出现了!
contextConfigLocation ...
分类:
编程语言 时间:
2014-05-30 04:06:38
阅读次数:
1453
留空,表达的是根;
指定到项目名后,可以通过http://192.168.1.30:8090/manager/html访问了;
分类:
其他好文 时间:
2014-05-30 03:26:14
阅读次数:
899
做移动互联网类型的开放,很多情况得考虑移动设备的暂停与退出时,做某些数据操作或UI。1,退出事件,Unity3d,InPut就包含了:Input.GetKey(KeyCode.Escape)
、Input.GetKey(KeyCode.Home) 、Input.GetKey(KeyCode.Menu...
分类:
移动开发 时间:
2014-05-30 02:14:02
阅读次数:
254
Explorer:menu selection and form filling缺点:when you
open a dataset, it immediately loads it all in. This means that the Explorer can
only be applied t...
分类:
其他好文 时间:
2014-05-29 21:03:09
阅读次数:
385
In Eclipse, from the Window menu, select Open
Perspective > Other... > DDMS. Select the Kindle Fire tablet, and click
the camera icon. (If the tablet ...
分类:
系统相关 时间:
2014-05-29 20:29:15
阅读次数:
479
importandroid.content.Context;importandroid.support.v4.view.ViewPager;importandroid.util.AttributeSet;importandroid.view.MotionEvent;/****@类名CustomVie...
分类:
其他好文 时间:
2014-05-29 19:24:15
阅读次数:
341