我在学习node.js.我做了一个HTTP服务器:localhost:8888 /下载文件
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "test/html"});
response.write("Hello World");
response.end();
}).listen(8888);
当我去为localhost:8888 /,假设页面显示“Hello World”,而是,具有的“Hello World”中有一个文件的下载。这是假设发生的吗?
hahahahhaha哇,无法相信我错过!谢谢! – nowayyy 2011-04-20 22:06:41