摘要: var express = require("express"); var bodyParser = require("body-parser"); var app = express(); // need it... app.use(bodyParser.urlencoded({ ... 阅读全文
posted @ 2017-01-06 14:55 webbky 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Express URL跳转(重定向)的实现 Express是一个基于Node.js实现的Web框架,其响应HTTP请求的response对象中有两个用于URL跳转方法res.location()和res.redirect(),使用它们可以实现URL的301或302重定向。 res.location( 阅读全文
posted @ 2017-01-06 10:04 webbky 阅读(3877) 评论(0) 推荐(0) 编辑