码迷,mamicode.com
首页 > 其他好文 > 详细

使用EasyUI布局时出现混乱瞬间的解决方法

时间:2015-05-12 10:50:52      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:

在所有form代码之前加遮罩层 

 

<div id=‘PageLoadingTip‘ style="position: absolute; z-index: 1000; top: 0px; left: 0px; width: 100%; height: 100%; background: gray; text-align: center;">  
   <h1 style="top: 48%; position: relative;color:#15428B;">页面加载中···</h1>
</div> 

 

使用 $.parser.onComplete 处理

 

<script type="text/javascript">
    function _PageLoadingTip_Closes() {
        $("#PageLoadingTip").fadeOut("normal", function () {
            $(this).remove();
        });
    }

    var _pageloding_pc;
    $.parser.onComplete = function () {
        if (_pageloding_pc) clearTimeout(_pageloding_pc);
        _pageloding_pc = setTimeout(_PageLoadingTip_Closes, 1000);
    }
</script> 

 

使用EasyUI布局时出现混乱瞬间的解决方法

标签:

原文地址:http://www.cnblogs.com/chenliang-zibo/p/4496478.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!