$.ajax({
         dataType: "json", type: "POST", url: "地址(/api/products)", data: JSON.stringify({ 'efairyuser_id': (efairyuser_id), 'access_token': (access_token), 'agency_info': (json) }), success: function (data) { //......... }, error: function () { alert("失败!"); }, });

get

$.ajax({
         dataType: "json",
                type: "get",
                url: "地址(/api/products)",
                data: { 'efairyuser_id': efairyuser_id, 'access_token': access_token },//要发送的数据(参数)格式为{'val1':"1","val2":"2"}
                success: function (data) {

                   //.........
                },
                error: function () {
                    
                    alert("失败!");
                },

            });

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-02-19
猜你喜欢
  • 2021-05-31
  • 2021-05-25
  • 2021-06-29
  • 2021-06-21
  • 2021-12-01
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案