我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
In a programming environment, the global scope is the scope that contains, and is visible in, all other scopes.
In client-side JavaScript, the global scope is generally the web page inside which all the code is being executed.
Learn more
Learn about it
- Introduction to variable scope in JavaScript
- Scope on Wikipedia