ajax操作时用于提高用户体验的两段备用代码


<div id="msgBoxDIV" style="position: absolute;  50%; padding-top: 2px; height: 24px; top: 123px; text-align: center;display: none"><span style="height: 20px;background-color: #269DDC;color: white;padding:3px 24px 3px;border-radius: 3px;font-size: 12px;z-index: 99">操作成功</span></div>
  $('#msgBoxDIV').show();                   
setTimeout("$('#msgBoxDIV').hide()", 5000);
原文地址:https://www.cnblogs.com/Benjamin/p/3517297.html