body-parser 被棄用了,現(xiàn)在有什么新的方式嗎
const?bodyParser?=?require('body-parser');
app.use(express.json())
//解析應(yīng)用/xwww-form-urlencode
app.use(express.urlencoded())
app.use(bodyParser.urlencoded({?extended:?true?}))
//?所有的錯(cuò)誤?http->?500
const?bodyParser?=?require('body-parser');
app.use(express.json())
//解析應(yīng)用/xwww-form-urlencode
app.use(express.urlencoded())
app.use(bodyParser.urlencoded({?extended:?true?}))
//?所有的錯(cuò)誤?http->?500
2021-09-24
舉報(bào)
2022-03-24
沒(méi)有??!我還用著好好的