使用express连接http
const express = require("express");// 创建http实例const app = express();app.use((req,res,next) => { console.log('请求开始...', req.method,req.url); next(); })app.use((req,res,next) => { req.cookie = { userId: 'aaa111' } next()}).
原创
2021-12-30 18:19:23 ·
728 阅读 ·
0 评论