摘要: 带原型的Constructor模式function Car(model, year, miles){ this.model = model; this.year = year; this.miles = miles;}Car.prototype.toString = function(){ ... 阅读全文
posted @ 2014-10-08 16:21 terabithia 阅读(106) 评论(0) 推荐(0)
摘要: 1. 减少HTTP 请求2.Avoid empty src or href 编写HTML代码和JavaScript程序的时候不要使用空的src地址。当然,记得link标签的href属性也是一样,一定不要为空值!细心,应该是前端工程师需要具备的品质之一 规则说明中介绍得很详细,有两种情况的空src值:... 阅读全文
posted @ 2014-10-06 22:57 terabithia 阅读(138) 评论(0) 推荐(0)