提取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();
}
});
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();
}
});
posted on 2014-07-01 16:42 JQuery-Ch 阅读(1026) 评论(0) 编辑 收藏 举报