a:focus{outline:none;}设置类似这样的属性后,超级链接点击后的虚线框会没掉,对于键盘用户来说就得不到焦点框。刚巧改这个的时候留神到了 在JavaScript中,IE7如果出现JSON以逗号结尾会报错,如var json = { one : 1, two : 2, // ...
分类:
其他好文 时间:
2014-06-27 21:46:26
阅读次数:
212
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
研究:低智商男人易出轨Deceitful and despicable is one description that wronged wives could apply to their cheating husbands.欺诈和卑鄙是受害妻子描述出轨丈夫的词汇。Plain stupid is a...
分类:
其他好文 时间:
2014-06-26 22:44:46
阅读次数:
308
使用ORM框架ORMLITE有一段时间,今天在操作一个对象的时候,重新运行报错如下:Must specify one of id, generatedId, and generatedIdSequence with Id翻译:意思大概也就是必须要有其中一个 id /generatedId /gene...
分类:
移动开发 时间:
2014-06-26 17:54:23
阅读次数:
305
【题目】
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must have at least one candy.
Children with a higher rating get more candie...
分类:
其他好文 时间:
2014-06-26 13:37:26
阅读次数:
265
【题目】
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
【题意】
给定一个整数数组,其中除了一个数以外,其他数都是成对出现的,...
分类:
其他好文 时间:
2014-06-26 10:13:27
阅读次数:
254
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他好文 时间:
2014-06-25 12:21:32
阅读次数:
235
这题看是否这题能A是侥幸,解决的办法是先存一下输入的字符串,进行排序。Problem DescriptionAn encoding of a set of symbols is said to be immediately decodable if no code for one symbol is...
分类:
其他好文 时间:
2014-06-25 11:46:47
阅读次数:
248
1 overload a operator of a class, you can only use one para., this pointer is automatically used. class Rational { public: //not correct sinc...
分类:
其他好文 时间:
2014-06-25 11:11:37
阅读次数:
194
.children() 获得元素集合中每个匹配元素的子元素,选择器选择性筛选。 Hello Hello Again And Again And One Last Time .closest()从元素本身开始,在DOM 树上逐级向上级元素匹配,并返回最先匹配的祖先元素。.closest().paren...
分类:
Web程序 时间:
2014-06-25 11:03:57
阅读次数:
264