摘要: 记得两年前的这个时候,我开始学习php。我选择了thinkphp入门,写了我的第一个简单的cms。当时我什么都不懂,但是这里的技术氛围好的,我每问必有大牛护航。凭借cms,找到在it行业找到了第一份工作。两年来跌跌荡荡,先后也用过一些国外的框架。最近的一份工作,又重回到think。我开始遇到一些问题... 阅读全文
posted @ 2015-07-12 18:42 debug8man 阅读(6844) 评论(0) 推荐(0) 编辑
摘要: sed命令结合由25个命令组成 阅读全文
posted @ 2015-07-04 12:01 debug8man 阅读(101) 评论(0) 推荐(0) 编辑
摘要: sed 使用-n选项和p可以实现在指定范围内的搜索貌似实现了比grep更精确的搜索 阅读全文
posted @ 2015-07-04 11:20 debug8man 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 数组的length属性的值是这个数组的最大整数属性名加上1.它不一定等于数组里的属性的个数。var myArr = [];myArr.length //0myArr[1000] = true;myArr.length = 1001; //1001 阅读全文
posted @ 2015-05-31 20:04 debug8man 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 迄今为止,所看到的继承模式的一个弱点就是我们没办法保护隐私。对象的所有属性都是可见的。我们没法得到私有变量和私有函数。var mammal = function (spec) { var that = {}, that.get_name = function ... 阅读全文
posted @ 2015-05-31 19:30 debug8man 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 在一个纯粹的原型模式中,我们会摒弃类,转而专注于对象,基于原型的继承相比基于类的继承的概念上更为简单if( typeof Object.beget !== 'function'){ Object.beget = function(o) { var F = fun... 阅读全文
posted @ 2015-05-31 19:11 debug8man 阅读(104) 评论(0) 推荐(0) 编辑
摘要: JavaScript是一门基于原型的语言,这意味着对象直接从其他对象继承。JavaScript的原型存在着诸多矛盾。某些看起来有点像基于类的语言的复杂语法问题屏蔽了它的原型机制。它不让对象直接从其他对象继承,反而插入了一个多余的间接层,从而使构造器函数产生对象。var Mammal = functi... 阅读全文
posted @ 2015-05-31 17:04 debug8man 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1 方法调用模式var myObject = { value : 0, increment : function(inc) { alert('hi'); }};myObject.increment();2 函数调用模式var sum ... 阅读全文
posted @ 2015-05-31 16:29 debug8man 阅读(217) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/littledu/articles/2607211.htmlhttp://www.cnblogs.com/rubylouvre/archive/2009/08/20/1550264.htmlhttp://www.laruence.com/2009/09/... 阅读全文
posted @ 2015-05-29 21:54 debug8man 阅读(121) 评论(0) 推荐(0) 编辑
摘要: sed BRE awk EREsed 不能采用? awk可以sed 在匹配的任何时候可以用^,$awk必须除了在行头和行尾 其他地方必须转义 阅读全文
posted @ 2015-05-28 07:33 debug8man 阅读(133) 评论(0) 推荐(0) 编辑