代码片段
$("#backgroundLoadingId").show();//显示遮罩
url:form.action,
type:'post',
//async:false,//ajax同步时遮罩不会显示
遮罩层未在dom显示出来的时候,同步已经把浏览器卡住, 当ajax执行完毕执行之后的代码 $("#backgroundLoadingId").hide();
代码片段
$("#backgroundLoadingId").show();//显示遮罩
//async:false,//ajax同步时遮罩不会显示
遮罩层未在dom显示出来的时候,同步已经把浏览器卡住, 当ajax执行完毕执行之后的代码 $("#backgroundLoadingId").hide();