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 built-in objects that are part of the JavaScript language itself, which are also globally accessible.