标签:
第一天学习node.js,比较菜鸟就随便记录下
首先安装问node之后打开命令行工具,输入node console.log(111111); 输出111111表示已经安装成功了.
建立一个http服务器:
var http = require("http");
http.createServer(function(request, response) {
console.log(111111111111111111);
}).listen(8888);
新建js文件将其保存为helloworld.js
首先在cmd中运行cd node的安装目录,然后在浏览器中输入localhost:8888
将会显示111111111111111111 好了 ,明天6点起来,晚安
标签:
原文地址:http://www.cnblogs.com/objectboy/p/5551527.html