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.
11 lines
188 B
11 lines
188 B
4 months ago
|
const express = require("express")
|
||
|
|
||
|
const app = express()
|
||
|
|
||
|
app.get("/user/:id",(req,res)=>{
|
||
|
res.send(req.params)
|
||
|
})
|
||
|
// 动态路由,实用':'
|
||
|
// req.params来获取
|
||
|
|
||
|
app.listen(80)
|