在终端上运行node.js的3种方式:
1、通过node –e 的方式
>node -e console.log("hello node.js");
2、直接进入node的模式
>node
>console.log("hello node.js");
3、通过脚本的方式运行node.js
>node G:\h-b\ceshi\node\node.js
在终端上运行node.js的3种方式:
1、通过node –e 的方式
>node -e console.log("hello node.js");
2、直接进入node的模式
>node
>console.log("hello node.js");
3、通过脚本的方式运行node.js
>node G:\h-b\ceshi\node\node.js
相关文章: