body-parser

body-parser

1
2
3
4
5
6
7
8
const express = require('express')
const app = express()
const jsonParser = bodyParser.json()
const urlencodedParser = bodyParser.urlencoded({ extended: false })

app.post('/',jsonParser, (req, res) => {

})

本文作者: 孟 虎
本文链接: https://menghu1994.github.io/blog/2023/10/Nodejs/Express/body-parser/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!