/*****************************************************/
function getAjaxData(url,data){
showLoading();
var defer = $.Deferred();
$.ajax({
type:'post',
url : url,
data:data,
success: function(data){
defer.resolve(data)
}
});
return defer;
}

$(document).click(function(){
showLoading();
$.when(getAjaxData('${path}/iborrow/getUserBorrowData.do',
{
"pageType" : "userBorrowRepay",/*待还款接口*/
"numPerPage":5,
"pageNum":1,
}
)).done(function(data){
console.log('异步',data);
hideLoadingImmediately();

});
})

相关文章:

  • 2021-09-16
  • 2022-01-29
  • 2021-05-22
  • 2022-12-23
  • 2021-08-24
  • 2021-10-29
  • 2021-12-23
猜你喜欢
  • 2021-05-08
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案