《JavaScript语言精粹》读书笔记

第三章

1 最小化全局变量:应用中只有一个全局变量。

第四章

1 公共方法:通过this取得对所属对象上下文的方法

2 使用函数和闭包来构造模块。模块是一个提供接口却隐藏状态和实现的函数或对象。

3 构造函数之间只能共享原型。构造函数的方法是各自的方法。构造函数原型的方法是共享的。

第八章

1 array数组方法:contact join pop push reverse shift slice sort splice unshift 

2Function方法:apply

3Number方法:toExpontial toFixed toPrecision

4Object方法:hasOwnProperty

5RegExp方法:exec  test

5String方法:charAt  charCodeAt concat indexOf lastIndexOf localeCompare  match replace search slice split toLowerCase toUpperCase fromCharCode

第九章

等等

问题

1 第五章函数化和部件没看懂。

原文地址:https://www.cnblogs.com/yunrundetizi/p/5864032.html