我有一个带有id" loading"的装载机。我根据ajax电话隐藏并显示它。它在呼叫之前和过程之后显示。问题是,处理请求时似乎停顿或冻结。附上我的代码
$('#button').click(function () {
var desktop = $("#desktop").val();
var server = $('#server').val();
var projectid = $('#projectid').val();
$('#loading').show();
var url2 = "/micro_workbook_target/Home/UpdateCustom/?ProjectId=" + projectid+"&desktop=" + desktop + "&server=" + server;
$.post(url2, function (json) {
var url1 = "/micro_workbook_target/Home/GetJson/?ProjectId=" + projectid;
$.post(url1, function (json) {
var t = json;
hot.loadData(t.data);
hot.updateSettings({
columnSorting: true,
filters: true
});
$('#loading').hide();
});
});