📌  相关文章
📜  express 获取表单 x-www-form-urlencoded - Javascript 代码示例

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

代码示例1
const express = require('express');
app.use(express.urlencoded({ extended: true }));

app.post('/api/', function(req, res) {
  console.log( req.body.usernameFormInput );
  console.log( req.body.emailFormInput );
  ...
});