-e,--eval "脚本"


-e, --eval "script"

将以下参数作为 JavaScript 进行评估。在 REPL 中预定义的模块也可以在 script 中使用。

【Evaluate the following argument as JavaScript. The modules which are predefined in the REPL can also be used in script.】

在 Windows 上,使用 cmd.exe 时,单引号无法正确工作,因为它只识别双引号 " 作为引用。在 Powershell 或 Git bash 中,单引号 ' 和双引号 " 都可以使用。

【On Windows, using cmd.exe a single quote will not work correctly because it only recognizes double " for quoting. In Powershell or Git bash, both ' and " are usable.】