一、作用域和全局变量var test=function(){ var a=1;
setTimeout(function(){ console.log(a); a=2; },1000); a=3; setTimeout(function(){
...
分类:
Web程序 时间:
2014-05-16 04:23:39
阅读次数:
303
1.用记事本新建一个java 程序,文件名为TestBean.java ,文件内容如下:
package test; public class TestBean{ private String name = null; public
TestBean(String strName_p){ ...
分类:
编程语言 时间:
2014-05-16 01:01:44
阅读次数:
333
在这之前,你要知道Task就是一个堆栈,栈顶的activity就是当前显示的activity,启动一个新的activity的时,一般直接压入堆栈,并成为当前运行的activity,前一个activity仍然在堆栈中,按下back键时,当前activity出栈,而前一个恢复为当前运行的activity...
分类:
其他好文 时间:
2014-05-16 00:40:58
阅读次数:
521
Memory management1.listvmastatic void
mtest_dump_vma_list(void){ struct task_struct *task = current; //get the
task_struct of the current process stru...
分类:
系统相关 时间:
2014-05-15 22:29:30
阅读次数:
555
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
阅读目录什么是单元测试?为什么使用单元测试?NUint使用详解:示例属性断言简单测试VS配置:External ToolsVisual Nunit
2010NUnit Test Adapter后记什么是单元测试? 单元测试(Unit Testing)是针对最小的可测试软件元素(单元)的,它所测试的....
分类:
其他好文 时间:
2014-05-15 14:29:12
阅读次数:
618
使用new的Code都违反了DIP.但是,依赖于稳定的具体类,是无害的.例如string.另一方面,对于正在开发中的APP,很多具体类是易变的.此时应该依赖于抽象接口.Factory模式:只依赖于抽象接口就能创建出具体对象的实例.对Test
Fixture使用工厂编写UT时,希望把一个模块和它使用的...
分类:
其他好文 时间:
2014-05-15 13:43:56
阅读次数:
312
直接上代码function test () { } document.write(typeof
test() + "") document.write(typeof new test() +
"")输出结果undefinedundefined好理解,因为test函数没有返回值。那new的时候为什么会...
分类:
编程语言 时间:
2014-05-15 10:00:35
阅读次数:
367
public class Test { public static void
main(String[] string){ int[] i = new int[10];
System.out.println(i.equals(null)); }...
分类:
其他好文 时间:
2014-05-15 09:54:00
阅读次数:
250
由于现网有时候要测试很多端口的连通性,所以就写了个小脚本,实现批量测试将telnet成功的写入到telnet_alive.txt中,失败则写入telnet_die.txt中#!/bin/bash#thisscripttestUPtootherhost.#Iplist=/opt/script_test/iplist.dataPortnumber=7001foripin$(catiplist.data)do(slee..
分类:
Web程序 时间:
2014-05-15 08:46:11
阅读次数:
385