hello node.js

来源:互联网 发布:设备域名应该怎么设置 编辑:程序博客网 时间:2024/05/29 11:19

 在终端上运行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

原创粉丝点击