Skip to content

Commit 5cde7b5

Browse files
committed
修订JavaScript深入之call和apply的模拟实现
1 parent 43c1dcf commit 5cde7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/深入系列文章/JavaScript深入之call和apply的模拟实现.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ for(var i = 1, len = arguments.length; i < len; i++) {
136136
args.push('arguments[' + i + ']');
137137
}
138138

139-
// 执行后 args为 [foo, 'kevin', 18]
139+
// 执行后 args为 ["arguments[1]", "arguments[2]", "arguments[3]"]
140140
```
141141

142142
不定长的参数问题解决了,我们接着要把这个参数数组放到要执行的函数的参数里面去。

0 commit comments

Comments
 (0)