JQuery Ajax not working with ExpressJS

前端 未结 2 1332
离开以前
离开以前 2020-12-22 06:36

I am trying to send number over to the server with JQuery on the client side and received with NOde.JS and ExpresJS on the server side.

Here\'s the client code:

2条回答
  •  长情又很酷
    2020-12-22 07:20

    Can you try logging req.body on the server side(console.log(req.body);? The variable num will be available as req.body.num instead of req.num.

提交回复
热议问题