Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update this.md #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 201711/this.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ foo.prototype.sayA = function () {
console.log(this.a)
}
var bar = new foo(2)
foo.sayA() // 2
bar.sayA() // 2
```

而尖头函数十分特别,你可以把它理解为 bind 函数的语法糖,它的 this 同外层函数的 this。
Expand All @@ -132,4 +132,4 @@ this 是 JavaScript 的一大难点,多年经验的前端程序员都可能对

------

作者:肖沐宸,[github](https://github.com/cheogo/learn-javascript)。
作者:肖沐宸,[github](https://github.com/cheogo/learn-javascript)。