Run JavaScript in Windows

前端 未结 5 879
一个人的身影
一个人的身影 2021-02-14 06:21

I thought for some simple tests that just run a few commands i would try using some JavaScript and run it from the command line in Windows XP.

So for a quick test I crea

5条回答
  •  甜味超标
    2021-02-14 06:49

    You are calling a function called alert, but this is not part of JavaScript (it is part of DOM 0 and is provided by browsers)

    Since you haven't defined it, you are trying to treat undefined as a function, which it isn't.

    Qnan suggests using the Echo method instead.

提交回复
热议问题