05 2016 档案
js数组去重的四种方法
摘要: 阅读全文
posted @ 2016-05-27 13:48 baiyuhong 阅读(133) 评论(0) 推荐(0)
javascript中的+function()
摘要:在javascript中上述语句相当于如下两句 就是在function前面加上+号相当于一个函数表达式,再加上后面的(),则相当于立即执行函数。 阅读全文
posted @ 2016-05-03 20:41 baiyuhong 阅读(744) 评论(0) 推荐(0)
20. Valid Parentheses
摘要:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文
posted @ 2016-05-01 13:47 baiyuhong 阅读(94) 评论(0) 推荐(0)
28. Implement strStr()
摘要:Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 思路:采用js中的indexOf方法就可以了。 阅读全文
posted @ 2016-05-01 13:25 baiyuhong 阅读(111) 评论(0) 推荐(0)