1、数组函数 concat 将参数列表连接到原数组后面形成一个新的数组并返回,原有数组不受影响。 var arr = ["a","b","c"]; var arr1 = arr.concat("d","e"); //arr1 = ["a","b","c","d","e"] join 以指定的字符作为 ...
分类:
其他好文 时间:
2017-06-08 23:38:53
阅读次数:
214
You only live once, but if you do it right, once is enough. 人生只有一次,但如果活对了,一次也就够了。 Maybe I am going to have to do a lot more work on the project before ...
分类:
其他好文 时间:
2017-06-08 10:53:13
阅读次数:
256
Deliver not your words by number but by weight. 言不在多,而在有物。 Do more than talk, say something. I still remember when I was a child in the primary school ...
分类:
其他好文 时间:
2017-06-01 10:32:05
阅读次数:
193
Sunday算法不像KMP算法那么复杂,但是效率又比较高,在KMP之上,下面简单介绍Sunday算法及其实现。 Sunday 算法由 Daniel M.Sunday 在 1990 年提出,它的思想跟 BM 算法很相似: 只不过 Sunday 算法是从前往后匹配,在匹配失败时关注的是文本串中参加匹配的 ...
分类:
编程语言 时间:
2017-05-29 21:05:32
阅读次数:
168
-(NSString *)getStringFromDate:(NSDate *)aDate { NSDateFormatter *dateFormater=[[NSDateFormatter alloc]init]; [dateFormater setDateFormat:@"M/dd - HH: ...
分类:
其他好文 时间:
2017-05-29 19:58:39
阅读次数:
177
获取当天零点时间戳$today = date('Y-m-d’,time());$todaytime = strtotime($today); 本周一echo date('Y-m-d',(time()-((date('w')==0?7:date('w'))-1)*24*3600)); //w为星期几的 ...
分类:
Web程序 时间:
2017-05-25 11:54:02
阅读次数:
212
JavaScript概述 JavaScript的历史 1992年Nombas开发出C-minus-minus(C--)的嵌入式脚本语言(最初绑定在CEnvi软件中).后将其改名ScriptEase.(客户端执行的语言) Netscape(网景)接收Nombas的理念,(Brendan Eich)在其 ...
分类:
Web程序 时间:
2017-05-23 20:30:24
阅读次数:
325
This is an interactive problem. In the output section below you will see the information about flushing the output. On Sunday Leha the hacker took Nur ...
分类:
其他好文 时间:
2017-05-22 00:12:41
阅读次数:
296
I learned the value of hard work by working hard. 只有真的努力了,才会知道努力的价值。 I know the value of hard work, but I never attain that value. Today, I felt exhau ...
分类:
其他好文 时间:
2017-05-18 16:57:18
阅读次数:
180
Sunday算法是Daniel M.Sunday于1990年提出的字符串模式匹配。其核心思想是:在匹配过程中,模式串发现不匹配时,算法能跳过尽可能多的字符以进行下一步的匹配,从而提高了匹配效率。 核心思想:在匹配过程中,模式串并不被要求一定要按从左向右进行比较还是从右向左进行比较,它在发现不匹配时, ...
分类:
编程语言 时间:
2017-05-15 19:39:33
阅读次数:
221