本文共 307 字,大约阅读时间需要 1 分钟。
步骤:
1、找到tools-->build system-->new build system
2、输入
1 {2 "cmd": ["D://nodejs/node.exe","--use-strict", "--harmony", "$file"],3 4 "selector": "source.js"5 }
D://nodejs/node.exe是你node的安装目录,你打开就能找到node.exe这个应用程序
3、保存,名字随便咯。
4、编写一个js文件,输入js代码,如:
1 console.log("hello world");
按Ctrl+B,运行,效果图在下面:
转载地址:http://efluz.baihongyu.com/