全局对象


【Global objects】

这些对象在所有模块中都可用。以下变量看起来可能是全局的,但实际上不是。它们只存在于模块的作用域中,见 模块系统文档

【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:】

此处列出的对象是 Node.js 特有的。还有一些是 JavaScript 语言本身的一部分,它们也是全局可访问的。

【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.】