Node js 写 hello word
1.安装:
到Node.js官网下载就可以了,才5M多点,双击后按步骤安装就可以了。
2."Hello World"
首先,创建个hello.js的文件,在文件中copy如下代码:
var http = require('http');http.createServer(function (req, res) { res.writeHead(200, { 'Content-Type': '
原创
2017-12-04 16:52:27 ·
447 阅读 ·
0 评论