POST方法多个参数我正在处理方法后这样使Node.js服务器:Reciving在node.js中
app.post('/app/:id:second',function(req,res){
console.log('Post received');
res.end();
})
如何我可以通过2个或多个参数,以我的服务器的URL?网址应该如何?我尝试了这样但它失败:http://localhost:8080/app/id=123&second=333
我是一个网络应用程序的初学者。
[网址参数](http://expressjs.com/4x/api.html#req.params)== [查询参数(HTTP! //expressjs.com/4x/api.html#req.query)。 – 2015-02-11 15:09:29
那么我怎样才能发送params到我的服务器?我有两种形式,我试图确定哪一个被按下。 – n0ne 2015-02-11 15:14:44
这个类似问题的答案是否有帮助? http://stackoverflow.com/questions/22223868/add-parameters-to-http-post-request-in-node-js – 2015-02-11 15:24:45