var connect = require('connect'); var app = connect() .use(connect.cookieParser()) .use(function(req,res){ console.log(req.cookie); console.log(req.signedCookies); }).listen(3000);提示:connect.cookieParser is not a function;在用 bodyParser的时候也会提示,网上说是从connect中脱离出来了,要重新 npm install cookieParser ,那bodyParser 也需要吗,所有的 自带中间件都需要?
添加回答
举报
0/150
提交
取消