首页 > 代码库 > 提取easyui 的loading框

提取easyui 的loading框

 $.extend({
                    loading: function () {
                        $("<div class=\"datagrid-mask\"></div>").css({ display: "block", width: "100%", height: $(document.body).height() }).appendTo("body");
                        $("<div class=\"datagrid-mask-msg\"></div>").html("正在提交数据,请稍候。。。").appendTo("body").css({ display: "block", left: ($(window).outerWidth(true) - 190) / 2, top: ($(window).scrollTop() + 350) });
                    },
                    removeload: function (isParentWindow) {
                        var t = $;
                        if (typeof isParentWindow != "undefined")
                            t = top.$;
                        t(".datagrid-mask,.datagrid-mask-msg").remove();
                    }
                });