摘要: 第一章: 以后章节会用到的定义新方法的方法Function.prototype.method = function(name, func) { if(!this.prototype[name]) { this.prototype[name] = func; return this; }}第二章: 1,注释:避免使用/* */,尽量使用// 因为*会出现在正则表达式中,例如以下的内容会引起错误 /* var rm_a = /a*/.match(s); */ 2,数字: JavaScript只有一个单一的数字类型,内部表示为64位浮点数,因此1... 阅读全文