jQuery EasyUI中弹出确认对话框 以及加载效果
jQuery EasyUI中弹出确认对话框 以及加载效果
jQuery EasyUI中弹出确认对话框 以及加载效果
- //confirm
- function Confirm(msg, control) {
- $.messager.confirm("确认", msg, function (r) {
- if (r) {
- return true;
- }
- });
- return false;
- }
- //Load
- function Load() {
- $("<div class=\"datagrid-mask\"></div>").css({ display: "block", width: "100%", height: $(window).height() }).appendTo("body");
- $("<div class=\"datagrid-mask-msg\"></div>").html("正在运行,请稍候。。。").appendTo("body").css({ display: "block", left: ($(document.body).outerWidth(true) - 190) / 2, top: ($(window).height() - 45) / 2 });
- }
- //hidden Load
- function dispalyLoad() {
- $(".datagrid-mask").remove();
- $(".datagrid-mask-msg").remove();
- }
评论暂时关闭