输入行的命令是快捷键“windos”+“R”右下角输入“cmd”,回车。
复制的代码没找到,自己照着敲的
var http=require('http');
http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text-plain'});
res.end('hello world\n');
}).listen(1337,'127.0.0.1');
console.log('Server runnig at http://127.0.0.1/1337');
复制的代码没找到,自己照着敲的
var http=require('http');
http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text-plain'});
res.end('hello world\n');
}).listen(1337,'127.0.0.1');
console.log('Server runnig at http://127.0.0.1/1337');
2017-03-24
哈哈,终于成功了,遇到的坑是最开始option里没写path,写上之后又把'/course/docomment'拼成document了,最后一个错误是option的header里多加个逗号
2017-03-24