如果你的版本是Express `4.x`, `5.0` and Connect `3.x`
将express改成session
将express改成session
2016-05-09
首先需要安装:
npm install --save connect-multiparty
把
app.use(express.multipart());
替换为
app.use(require('connect-multiparty')());
npm install --save connect-multiparty
把
app.use(express.multipart());
替换为
app.use(require('connect-multiparty')());
2016-05-08
var cookieParser = require('cookie-parser');
var cookieSession = require('cookie-session');
app.use(cookieParser());
app.use(cookieSession({
name: 'session',
keys:['key1','key2']
}));
var cookieSession = require('cookie-session');
app.use(cookieParser());
app.use(cookieSession({
name: 'session',
keys:['key1','key2']
}));
2016-04-24