課程
/前端開發(fā)
/Node.js
/Nodejs全棧入門
總報錯說:
TypeError: Cannot destructure property `name` of 'undefined' or 'null'.
2020-03-25
源自:Nodejs全棧入門 3-2
正在回答
//?按照官方文檔 //?1.?npm?install?body-parser?-S //?2.?引入??在app.js中 const?bodyParser?=?require('body-parser'); //?3.?放入中間件 app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended:?true}); //?4.發(fā)送請求的時候?可以使用?urlencoded?格式 //?5.如果發(fā)送的是json,那么需要加入header? Content-Type:?application/json
舉報
基于node+mysql+react全棧實戰(zhàn)
1 回答已安裝body-parser ,但是運行是沒res
1 回答body-parser 被棄用了,現(xiàn)在有什么新的方式嗎
2 回答安裝body-barser,啟動報錯
1 回答安裝nodemon,無效
1 回答win7x64 下用nvm-setup.exe安裝后無法使用nvm命令
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2020-03-26