GET /hello/fred/0926xxx572

app.get('/hello/:name/:tel', function(req, res) {
console.log(req.params.name);
console.log(req.params.tel);
});
req.params.xxxxx 从path中的变量
req.query.xxxxx 从get中的?xxxx=中
req.body.xxxxx 从post中的变量

相关文章:

  • 2021-12-03
  • 2022-12-23
猜你喜欢
  • 2021-06-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-08-06
  • 2021-08-31
  • 2021-06-05
相关资源
相似解决方案