const { pathname } = new URL(req.url, 'http://localhost:3000') //{}解析
const query = new URL(req.url, 'http://localhost:3000').searchParams //获取请求参数用get('id')
const { pathname } = new URL(req.url, 'http://localhost:3000') //{}解析
const query = new URL(req.url, 'http://localhost:3000').searchParams //获取请求参数用get('id')