📜  在 url 中表达参数 - Javascript 代码示例

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

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

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