以下代码段允许我在单击的按钮的回调函数中执行操作.但是,如何获得回调函数或类似的解决方法,以便在用户单击“X”按钮/解除对话框时执行某些代码?
bootBox.dialog({ title: "Woah this acts like an alert",message: "Cool info for you. You MUST click Ok.",buttons: { sucess:{ label: "Ok",callback: callback } } }); callback(){//stuff that happens when they click Ok.}
我不想禁用/隐藏关闭按钮
closeButton: false,