alhassy / alhassy/JavaScriptCheatSheet
`this` is not tied to the function
未关闭
help wanted
- 主要语言
- 没有语言数据
- 星标
- 221
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
描述
There's a section called:
> The this of Parent Scopes
And it starts by saying:
> Since each function has its own `this` binding, whose value depends on the way it is called, you cannot refer to the `this` of the wrapping scope in a regular function defined with the function keyword.
This is incorrectly worded. There is no concept at all of "the `this` of a scope", as it's not associated to a _scope_. So the title is not correct. Also the explanation will be confusing to novices because it, again, relates `this` to some wrapping _scope_.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。