Python 可以交互运行,所以我想知道是否也可以交互运行 WScript Javascript(微软称之为 JScript)。
我看到我可以运行这样的脚本:cscript hello.js
内容:
WSH.Echo("Hello world");
WSH.Quit();
但我只想做类似的事情:
Echo("Hello world");
那可能吗?
Python 可以交互运行,所以我想知道是否也可以交互运行 WScript Javascript(微软称之为 JScript)。
我看到我可以运行这样的脚本:cscript hello.js
内容:
WSH.Echo("Hello world");
WSH.Quit();
但我只想做类似的事情:
Echo("Hello world");
那可能吗?