課程
/前端開(kāi)發(fā)
/Node.js
/node建站攻略(二期)——網(wǎng)站升級(jí)
請(qǐng)問(wèn)這四為什么?
2015-10-04
源自:node建站攻略(二期)——網(wǎng)站升級(jí) 3-4
正在回答
當(dāng)從你語(yǔ)句看,如果req.body.user拿不到對(duì)象,那就是你別的地方錯(cuò)了
你應(yīng)該這樣拿:
input(name="name") ?input(name="password")
拿數(shù)據(jù)時(shí):
var user = req.body;
就可以拿到user對(duì)象,及name和password: user.name,user.password了
舉報(bào)
幫助你深入前后端開(kāi)發(fā)留下的迷惑,為進(jìn)一步自學(xué)打下基礎(chǔ)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-07-03
當(dāng)從你語(yǔ)句看,如果req.body.user拿不到對(duì)象,那就是你別的地方錯(cuò)了
2015-12-20
你應(yīng)該這樣拿:
input(name="name") ?input(name="password")
拿數(shù)據(jù)時(shí):
var user = req.body;
就可以拿到user對(duì)象,及name和password: user.name,user.password了