<link rel="stylesheet" type="text/css" href="loadMask.css" />
<script type="text/javascript" src="lwb_LoadMask.js"></script>
<script type="text/javascript">
var theMask;
theMask = new $.util.LoadMask(".comment", "加载中...");
//.comment为需要遮罩的div
beforeSend:function(){
theMask.show();
},
complete:function(){
theMask.hide();
}
<script type="text/javascript" src="lwb_LoadMask.js"></script>
<script type="text/javascript">
var theMask;
theMask = new $.util.LoadMask(".comment", "加载中...");
//.comment为需要遮罩的div
beforeSend:function(){
theMask.show();
},
complete:function(){
theMask.hide();
}