0
我在一家MongoDB course沿以下,来到一个基本的节点你好世界服务器教程:节点“ n”的错误当本地主机服务器
基本上它只是显示的Hello World在localhost: 8000
所以我输入了下面的代码,当我试图运行它,跑进了以下错误:
var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello, World"\n);
});
server.listen(8000);
console.log("Server running at http://localhost:8000");
如果我删除\ n它会工作正常,只是好奇老师如何让他的工作与它没有错误?
啊谢谢!跑步前他必须纠正 – 2014-11-02 21:41:51