cosyer

function test(callback){
$.ajax({
url:\'/mall/credit\',
type: \'get\',
dataType:\'json\',

processData: false, // 告诉jQuery不要去处理发送的数据
contentType: false, // 告诉jQuery不要去设置Content-Type请求头

success: function(response){
credit = response.data.credit;
callback(credit);
},
error: function(){
alert("error");
}
});
}
test(function(data){
console.log(data);
})

分类:

技术点:

相关文章:

  • 2022-01-29
  • 2022-01-10
  • 2022-02-16
  • 2022-12-23
  • 2022-01-06
  • 2021-07-31
  • 2021-05-08
猜你喜欢
  • 2022-01-31
  • 2022-12-23
  • 2021-12-04
  • 2021-12-26
  • 2022-01-30
相关资源
相似解决方案