NaN表示一个不能产生正常结果的运算结果。它不等于任何值,包括它自己。可以用isNaN(number)来检测。同Java中的字符串一样,JS中的字符串是不可变的。也就是说一旦字符串被创建,就无法改变。下标表达式(如s[3],代替s.charAt(3))可以读取字符,但是不能用于改变字符。null,u...
分类:
编程语言 时间:
2014-08-29 09:27:17
阅读次数:
294
在知乎上看到的有人发布的和javascript有关的试题,和大家分享下,虽然是N久前的事了,但这些题相当经典,不免让人觉得javascript真是门蛋疼的语言。(function(){
returntypeofarguments;
})();
A."object"
B."array"
C."arguments"
D."undefined"答案:A02.varf=functiong(){..
分类:
编程语言 时间:
2014-08-29 03:01:07
阅读次数:
182
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Plus One
Total Accepted: 17614 Total
Submissions: 55852My Submissions
Given a non-negative number represented as an array ...
分类:
其他好文 时间:
2014-08-29 02:53:26
阅读次数:
223
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-08-29 01:18:46
阅读次数:
187
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-08-29 01:18:36
阅读次数:
275
Invisible Columns使用select * from ,desc 等看不到该列,DROP TABLE tab1 PURGE;CREATE TABLE tab1 ( id NUMBER, description VARCHAR2(50) INVISIBLE);DESC...
分类:
数据库 时间:
2014-08-29 01:16:46
阅读次数:
403
http://poj.org/problem?id=3252题意:问从a到b有多少个round number。如果某数的二进制表示中0的个数不少于1的个数,那么它就是一个round number。分析:数位dp。就我目前碰到的几道数位dp来说,其实所谓数位dp,就是和组合数有联系的递推罢了。还是转换...
分类:
其他好文 时间:
2014-08-28 19:45:55
阅读次数:
232
total_rows == 0 OR $this->per_page == 0) { return ''; } // Calculate the total number of pages $num_pages = ceil($this->total_rows / ...
分类:
其他好文 时间:
2014-08-28 18:03:15
阅读次数:
354
一、JQuery对象的基本方法:(1) get(); 取得所有匹配的元素(2) get(index); 取得其中一个匹配的元素 $(this).get(0) 等同于 $(this)[0](3) Number index(jqueryObj); 搜索子对象(4) each(callback); 类似f...
分类:
Web程序 时间:
2014-08-28 18:00:15
阅读次数:
305
原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-28 13:04:59
阅读次数:
162