$(function () {
            $('#windowsMSG').window({
                onBeforeClose: function () { //当面板关闭之前触发的事件
                    if (confirm('窗口正在关闭,请确认您当前的操作已保存。\n 是否继续关闭窗口?')) {
                        $('#windowsMSG').window('close', true); //这里调用close 方法,true 表示面板被关闭的时候忽略onBeforeClose 回调函数。
                    } else
                        return false;
                }


            });
        });

相关文章:

  • 2021-10-09
  • 2021-12-23
  • 2022-02-14
  • 2022-12-23
  • 2021-12-05
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-02-27
  • 2021-07-22
相关资源
相似解决方案