03 2017 档案

摘要:function unique(arr) { var result = [], hash = {}; for (var i = 0, elem; (elem = arr[i]) != null; i++) {//循环arr数组 if (!hash[elem]) {//hash数组作用:判断当前元素是否存在 result.push(e... 阅读全文
posted @ 2017-03-30 15:36 承载梦想-韩旭明 阅读(147) 评论(0) 推荐(0)
摘要:js的单线程和异步:http://www.cnblogs.com/lzbk/p/6063583.html http://www.cnblogs.com/Mainz/p/3552717.html 阅读全文
posted @ 2017-03-08 13:49 承载梦想-韩旭明 阅读(161) 评论(0) 推荐(0)
摘要:字符串替换replace方法: http://www.w3school.com.cn/jsref/jsref_replace.asp http://www.cnblogs.com/skywang/articles/2051052.html 阅读全文
posted @ 2017-03-03 10:53 承载梦想-韩旭明 阅读(622) 评论(0) 推荐(0)