document.body.clientHeight:body对象的高度document.documentElement.clientHeight:指可见区域的高度获取元素中滚动条的垂直偏移可以写成:var top = document.documentElement.scrollTop || do...
分类:
其他好文 时间:
2014-06-27 17:03:46
阅读次数:
202
有没有那么一个时候,特别想知道现在的时间呢。上代码。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"RootV...
分类:
其他好文 时间:
2014-06-27 13:21:01
阅读次数:
150
Determine whether an integer is a palindrome. Do this without extra space.
分类:
其他好文 时间:
2014-06-27 12:28:06
阅读次数:
228
何为闭包;闭包跟作用域相关的,ECMAScript 允许使用内部函数,即函数定义和函数表达式位于另一个函数的函数体内。内部函数可以访问它们所在的外部函数中声明的所有局部变量、参数和声明的其他内部函数。当其中一个这样的内部函数在包含它们的外部函数之外被调用时,就会形成闭包。确实有点晕看个例子吧 Do....
分类:
编程语言 时间:
2014-06-26 23:59:53
阅读次数:
461
原文:JavaScript NodeList和Array原文引用脚本之家作者:Jeff Wong,谢谢大神提供资源在Web前端编程中,我们通常会通过document.getElementsByTagName或者document.getElementsByClassName的方法取出一组相同标签的do...
分类:
编程语言 时间:
2014-06-26 23:56:38
阅读次数:
403
Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5...
分类:
其他好文 时间:
2014-06-26 23:07:29
阅读次数:
276
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:
其他好文 时间:
2014-06-26 23:04:14
阅读次数:
221
1,cout 1) 用来向标准输出打印。 2)如果参数是char*类型,则直接输出字符串。如果想要输出地址,则需要强制转换: (const_cast(pstr));2,cin 1) 将标准输入读入变量,如果输入与变量声明类型不一致,则cin为false,可以用if判断,变量值不确定。 do...
分类:
编程语言 时间:
2014-06-26 19:07:54
阅读次数:
211
转帖:http://blog.chinaunix.net/space.php?uid=11654074&do=blog&id=2857384Contents Page文件夹入木三分学网络第一篇--VRRP协议具体解释... 11. VRRP产生背景及应用环境... 21.1为什么要用VRRP. 22...
分类:
其他好文 时间:
2014-06-26 17:34:45
阅读次数:
407
NSKeyedArchiver是加密形式的保存数据。上代码。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"N...
分类:
其他好文 时间:
2014-06-26 11:24:49
阅读次数:
161