【转】nodejs怎么把html以源码的形式在网页中显示了,而不是解析它。

html文件头写成了text/plain, 改成 response.writeHead(200, {“Content-Type”: “text/html”}); 

原回答网址:http://cnodejs.org/topic/51fb840744e76d216aa20f25

posted @ 2017-10-08 13:13  Kate_Lee  阅读(594)  评论(0编辑  收藏  举报