1、setTimeout() setTimeout()
方法用于在指定的毫秒数后调用函数或计算表达式。具体的格式是这样的setTimeout(code,millisec)
其中code是要执行的代码或者function,而millisec是间隔的时间(毫秒数) function empt...
分类:
其他好文 时间:
2014-07-22 23:06:14
阅读次数:
243
原文地址:http://hankjin.blog.163.com/blog/static/337319372009535108234/一共两个文件:EasterEgg.xaml
+ EasterEgg.xaml.csEasterEgg.xaml 等级: 分数: 说明: 上下左右键调整...
分类:
其他好文 时间:
2014-07-22 23:06:12
阅读次数:
515
原文地址:http://hankjin.blog.163.com/blog/static/33731937200942915452244/程序中不可避免的要用到配置文件或数据,对于数据量比较小的程序,部署数据库花费的时间就显得浪费了,因此用XML来存储不妨为一个很好的办法,而且结合C#的DataSe...
分类:
数据库 时间:
2014-05-01 16:20:41
阅读次数:
328
近期在看dnsjava 源码的时候,不经意间发现一个自己没有想过的问题:HashMap
如何使用key去查找对应的value的,这个问题很难用语言描述的清楚,那就使用代码来进行说明吧!public class test { public
static void main(String[] ar...
分类:
编程语言 时间:
2014-05-01 16:20:07
阅读次数:
509
博客原文:http://hankjin.blog.163.com/blog/static/33731937201031511305338/先说C++,标准C++不支持finally,
如果要实现finally的效果,可以用析构函数来实现: class File_handle { FILE* p;p....
分类:
编程语言 时间:
2014-05-01 16:17:26
阅读次数:
371
标签:例如注意,
此时button的点击事件不会调用jquery中的show(),如果没在js文件中直接书写function show(){}的话,会报错,
提示找不到show()但是在jquery中是可以调用jquery中的 function show() {}的,即可以调用上面的红色书写的sho...
分类:
编程语言 时间:
2014-05-01 16:13:24
阅读次数:
347
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-01 16:06:46
阅读次数:
427
function trimStr(str){ return
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:
Web程序 时间:
2014-05-01 15:47:26
阅读次数:
347
function SearchCondition(){ this.startTime = "";
this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.m...
分类:
Web程序 时间:
2014-05-01 15:36:22
阅读次数:
414
public class PrototypeManager { /** *
用来记录原型的编号和原型实例的对应关系 */ private static Map map = new HashMap(); /** *
私有化构造方法,避免外部创建实例 *...
分类:
其他好文 时间:
2014-05-01 15:02:37
阅读次数:
307