如何检索查询后参数?
<form id="loginformA" action="userlogin" method="post"> <div> <label for="email">Email: </label> <input type="text" id="email" name="email"></input> </div><input type="submit" value="Submit"></input></form>
app.post('/userlogin', function(sReq, sRes){ var email = sReq.query.email.; }
sReq.query.email
sReq.query['email']
sReq.params['email']
undefined
.
相关分类