📅  最后修改于: 2022-03-11 15:04:20.595000             🧑  作者: Mango
const url = require('url');
const express = require('express');
const app = express();
app.use((req, res, next) => {
const query = url.parse(req.url).query;
// Do something...
});
const port = 3000;
app.listen(port, console.log(`Listening on port ${port}.`));