[size=medium]
When the JavaScript interpreter starts up, one of the first things it does, before executing any JavaScript code, is create a global object . The properties of this object are the global variables of JavaScript programs. When you declare a global JavaScript variable, what you are actually doing is defining a property of the global object.
[/size]
When the JavaScript interpreter starts up, one of the first things it does, before executing any JavaScript code, is create a global object . The properties of this object are the global variables of JavaScript programs. When you declare a global JavaScript variable, what you are actually doing is defining a property of the global object.
[/size]
本文深入探讨了JavaScript解释器启动时创建全局对象的过程及其意义。解释了声明全局变量实际上是定义全局对象属性的概念。
1378

被折叠的 条评论
为什么被折叠?



