首页 > 其他 > 详细

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

时间:2015-05-12 10:49:21      阅读:269      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!