console.log可以输出中文吗?
console.log(“中文”); 命令窗口中什么都不显示
3 回复
<pre>var http = require(“http”); function start(route) { function onRequest(request, response) { response.writeHead(200, {“Content-Type”: “text/plain”}); response.write(“Hello World”); response.end(); } http.createServer(onRequest).listen(8003); console.log(“启动成功了”); } exports.start = start; <code> 如上面的代码,环境 winxp + nodejs 0.6.0.7