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


浙公网安备 33010602011771号