$.ajax({
    url: "http://1.1.1.1/api/v2/user/inviters", //接口
    type: "post", //GET或POST
    data: JSON.stringify({}), //数据
    headers: {
        'Content-Type': 'application/json'
    },
    //dataType: 'json',    //返回的数据格式:json/xml/html/script/jsonp/text
    success: function(msg) {
        if (msg.data && msg.data.inviters) {
            addFimg(msg.data.inviters);
        }

    }, //回调成功方法
    error: function(xhr, textStatus) {
        console.log(xhr);
        console.log(textStatus)
    }
});

 

相关文章:

  • 2022-01-17
  • 2021-11-05
  • 2021-10-03
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-21
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案