★*^_^*★
分类: jQuery
2018-07-03 14:34:55
function exportAjax (params) {
$(".loadingTip").removeClass("loadingHide").addClass("loadingShow");
$.when(getAjaxData(params)).done(function (data) {
$(".loadingTip").removeClass("loadingShow").addClass("loadingHide");
if (data.code == 9000) { objData = data.data.List;
renderAllTable(objData);
method5('allTable','导出表名');
} else {
myAlert('',data.message);
} }) }
function getAjaxData(params) {
let defer = $.Deferred();
ajaxGetAll ({ url: '/admin/statistics/Statisticsuserreg/add',
async: true,
data: params,
success: function (data) { defer.resolve(data);
} })
return defer
}