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
不錯;