全局对象
【Global objects】
稳定性: 2 - 稳定
这些对象在所有模块中都可用。
【These objects are available in all modules.】
以下变量看起来可能是全局的,但实际上不是。它们仅存在于 CommonJS 模块 的作用域中:
【The following variables may appear to be global but are not. They exist only in the scope of CommonJS modules:】
此处列出的对象是 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.】