转:http://www.orangepi.cn/quickstartcn/startcn_767c4c42e81bb522bffea2e24b26.html 按照...
node.js实现http服务器
var http = require('http'); var url = require('url'); //var http = require('url');...
node中服务器与客户端
server.js var http = require('http'); var fs = require('fs'); var url = require('u...
node.js express中路由
var express = require('express'); var app = express(); // 主页输出 "Hello World"...
node.js express中post
var express = require('express'); var app = express(); var bodyParser = require('b...
node.js express中get
var express = require('express'); var app = express(); app.use(express.static('pub...
node.js中restful
var express = require('express'); var app = express(); var fs = require("fs"); app...
node.js中post方法
//http://qson.iteye.com/blog/2055523 var http = require('http'); var qs = r...
node.js中get方法
//http://qson.iteye.com/blog/2055523 //var http=require("http"); //http.get("http:...