这是因为let是一个全局定义的标识符。
在清单3的例子中,zipCode元素不是全局定义的。
In the example in Listing 3, the zipCode element is not defined globally.
此外,comment元素也是全局定义为字符串类型的。
In addition, the comment element is also globally defined as a string type.
in this global environment.
这里定义了一个全局变量。
应用推荐