📜  bodyparser 限制 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:37.077000             🧑  作者: Mango

代码示例1
import bodyParser from "body-parser";

const app= express();
app.use(bodyParser.json({ limit: "5mb", extended: true }));
app.use(bodyParser.urlencoded({ limit: "5mb", extended: true }));