Express ~ obtain comparative form get and post submission of the transmission parameters

 
First, access to parameters get submitted
 
where id = req.query.id || ''
 

Second, the acquisition parameters submitted by post

var name = req.body.name || ''

 

Guess you like

Origin www.cnblogs.com/500m/p/11031901.html