可以采用余下方法
$.ajax({
type:'POST',
url:location.href = 'aaa?xxx='+$('#xxx').val(),
beforeSend: function () {
$.messager.progress({
title: '提示',
msg: '文件导出中,请稍候……',
text: ''
});
},
complete: function () {
$.messager.progress('close');
}
});