Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了 jQuery 对话框代码,以便我可以提示我的用户。如果用户单击关闭按钮(右上角的“X”),有没有办法捕捉到?谢谢。
您应该能够捕获 beforeclose 事件(文档可在此处找到)。