layer.confirm 询问框 的层遮盖

复制代码
function admin_del(obj) {
         layer.confirm('确认要重启吗?', {
            btn : [ '确定', '取消' ]//按钮
        }, function(index) {
            layer.close(index);
            //此处请求后台程序,下方是成功后的前台处理……
            var index = layer.load(0,{shade: [0.7, '#393D49']}, {shadeClose: true}); //0代表加载的风格,支持0-2
            location.href = "HotDeviceManagementServlet?action=restart";
        }); 
    }
    window.onload = admin_del;
复制代码

关于的 layer.open组件获取弹出层页面变量、函数 的y应用;

博客:等想出来再取 的 http://blog.csdn.net/qq_32588349/article/details/52618450

posted @ 2018-04-21 09:58  左正  阅读(618)  评论(0编辑  收藏  举报