• js关闭窗口弹出对话框


    $(function(){
                    window.onbeforeunload = function(){
                     event.returnValue   =   "您正在编辑的信息尚未提交,离开本页面后信息将丢失!";
                    };
    }

    ------------------------------------------

    //有确认退出

    var msg_unload="您的文章内容还没有进行保存!";
    var unloadConfirm = {};
    unloadConfirm.SetConfirmMsg = function(confirmMsg)
    {
        window.onBeforeUnload = function(event)
        {
            event = event || window.event;
            event.returnvalue = confirmMsg;
        }
    }
    unloadConfirm.Clear = function()
    {
        window.onBeforeUnload = function(){};
    }
    unloadConfirm.SetConfirmMsg(msg_unload);

    //无确认退出

    window.opener=null;
    window.open('','_self');
    window.close();
  • 相关阅读:
    Domain Space
    Class WriteGroupAttribute
    HelloCube:IJobForEach
    HelloCube:ForEach
    组件
    世界
    DOTS默认情况下的性能
    ECS适合你吗?
    DOTS原则和愿景
    Packages window(包窗口)
  • 原文地址:https://www.cnblogs.com/fx2008/p/2283065.html
Copyright © 2020-2023  润新知