global(全局变量)


所有模块都提供这些对象。 以下变量虽然看起来是全局的,但其实并不是。 它们仅存在于模块范围内,请参阅模块系统文档

此处列出的对象特定于 Node.js。 有许多内置对象是 JavaScript 语言本身的一部分,它们也是全局可访问的。

These objects are available in all modules. The following variables may appear to be global but are not. They exist only in the scope of modules, see the module system documentation:

The objects listed here are specific to Node.js. There are a number of built-in objects that are part of the JavaScript language itself, which are also globally accessible.