add file:call和apply

This commit is contained in:
qianguyihao
2018-03-14 22:49:34 +08:00
parent 6bdc71246b
commit d12e94f797
15 changed files with 772 additions and 39 deletions

View File

@@ -167,7 +167,6 @@ console.log(name);
闭包就是能够读取其他函数内部变量的函数。
只有函数内部的子函数才能读取局部变量,因此可以把闭包简单理解成"定义在一个函数内部的函数"。

View File

@@ -41,9 +41,9 @@ cookie用于存储时的缺点
- `foreach`用于遍历数组,是数组的一个方法。不支持 return。
- `for ... in`获取的是index索引值。
- `for ... in`获取的对象是index索引值。
- `for ... of`获取的是数组里的值。
- `for ... of`获取的是对象里的值。