📜  express.js GET 参数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:04.162000             🧑  作者: Mango

代码示例4
// GET /something?color1=red&color2=blue

app.get('/something', (req, res) => {
    req.query.color1 === 'red'  // true
    req.query.color2 === 'blue' // true
})