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