You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
404 B
19 lines
404 B
const express = require("express")
|
|
// const cookieParser = require("cookie-parser")
|
|
// const UUID = require("uuid")
|
|
const app = express()
|
|
|
|
app.use((req,res,next)=>{
|
|
console.log("我来过");
|
|
next()
|
|
})
|
|
// app.use(cookieParser())
|
|
|
|
app.get("/hellow",(req,res)=>{
|
|
// console.log("xs")
|
|
// console.log(req.cookie)
|
|
// res.cookie("name","何琋")
|
|
res.send("req.cookie")
|
|
})
|
|
|
|
app.listen(80) |