📜  express js 参数 - Javascript 代码示例

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

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

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