Что делает Java Script таким странным и восхитительным Pt 4
Scope and Context are in every language, but because Javascript is always firing callbacks and running asynchronous tasks, it s easy to lose sight of what scope context you re in. Scope and context are not the same thing. Scope is variable access what variables the current piece of code has access to, context is the value of this when you type this in your code, what object is it referring to This javascript tutorial covers scope and how it plays out in all of the functions that you create. W
|
|