摘要:
1、nodejs —— 服务器 2、http —— 协议 3、 const http=require('http'); // 创建服务器(回调函数) var server=http.createServer(function(req,res) { console.log('有人来了'); }); / 阅读全文
摘要:
1、安装nodejs(下一步就行) 2、打开sublime,Tools —> Build System —> New Build System { "cmd": ["C:/Program Files/nodejs/node.exe", "$file"], "selector": "source.js 阅读全文
摘要:
1、控制台切换到文件所在位置 2、输入node + 空格 +文件名.js 阅读全文
摘要:
1、切换盘符 e: 2、改变当前目录 cd 目录名 阅读全文