上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 60 下一页
摘要: 转载:http://www.jb51.net/article/94451.htm http://www.cnblogs.com/TiestoRay/p/3360378.html https://segmentfault.com/a/1190000002662251 对于函数绑定(Function b 阅读全文
posted @ 2016-11-24 09:10 飘然离去 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 3 1. 2. 3. 阅读全文
posted @ 2016-11-22 14:15 飘然离去 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 转载:http://bbs.blueidea.com/thread-3107428-1-1.html 1.截取字符串abcdefg的efg //alert('abcdefg'.substring(4)); 2.判断一个字符串中出现次数最多的字符,统计这个次数 /*var str = 'asdfssa 阅读全文
posted @ 2016-11-22 08:07 飘然离去 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 1 Array.prototype.mapA = function(fun /*, thisp*/) 2 { 3 var len = this.length; 4 if (typeof fun != "function") 5 throw new TypeError(); 6 var res = new Array(len); 7 var thisp = ... 阅读全文
posted @ 2016-11-21 16:01 飘然离去 阅读(1946) 评论(0) 推荐(0) 编辑
摘要: 转载 :http://www.jb51.net/article/43190.htm http://www.iteye.com/topic/481228/ 正则表达式需要学习的方法: . 这个表示除了\n以外的任何数据,他和*+?都不同,后边的几个都是表示数量。而.表示字符。 * 匹配前面元字符0次或 阅读全文
posted @ 2016-11-19 17:37 飘然离去 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 为了解决回调地狱的问题,所以出现了promise的设计思想。 #### promise A+ 规范[https://promisesaplus.com/](https://promisesaplus.com/)#### 几点需要强调的。- promise 必须有一个then方法。- promise 阅读全文
posted @ 2016-11-19 10:02 飘然离去 阅读(329) 评论(0) 推荐(1) 编辑
摘要: 转载:http://www.108js.com/article/article1/10201.html?id=1092 请先瞻仰上边的这篇文章。 对象的原型链: box.__proto__.__proto__ == Object.prototype //true 上边对象的__proto__的属性讨 阅读全文
posted @ 2016-11-17 14:04 飘然离去 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/pao8041/p/4750403.html 不过上面的这个我用的不好,下次有机会用 阅读全文
posted @ 2016-11-16 18:29 飘然离去 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1.curl -I 网址 2. 批量减压一个文件夹下的.zip文件 ,比如我这里的ch01.zip ch02.zip ch03.zip ch04.zip 命令unzip ch\*.zip 3.chmod chmod +x *.sh chmod+ 比用chmod 755有时候管用的多。 4.rc在li 阅读全文
posted @ 2016-11-14 10:23 飘然离去 阅读(217) 评论(0) 推荐(0) 编辑
摘要: js的offsetWidth,offsetHeight,offsetLeft,offsetTop 阅读全文
posted @ 2016-11-13 13:10 飘然离去 阅读(172) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 60 下一页