weixin_33682790 2018-01-17 00:16 采纳率: 0%
浏览 22

节点JS Ajax请求变量

I have to make a query that gets me all the information from the client with a certain ID. The problem is that I can't get the ID in the route right. I have this ajax call:

 $.ajax({
      type: 'GET',
      url: '/client',
      data: id,
      success: function (result) {
      console.log(result);
      },

And on the route:

global.app.get('/client', function(req, res) {});

How do i get the value of the id on the route?

  • 写回答

0条回答 默认 最新

    报告相同问题?