windows command line javascript

前端 未结 5 1741
小鲜肉
小鲜肉 2021-02-14 04:21

I\'m trying to run javascript from a windows command line via script

cscript //NoLogo test.js

However, I can\'t find any predefined objects which are av

5条回答
  •  感情败类
    2021-02-14 04:59

    That is actually JScript and when run with cscript or wscript, it's under the Windows Scripting Host environment, which has no real similarity with web-based javascript.

    Windows Scripting Host reference

提交回复
热议问题