关闭页面时要执行的代码使用什么事件? [英] What event to use for code to be executed when a page is closed?
本文介绍了关闭页面时要执行的代码使用什么事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
当我的网页关闭时,我需要执行一些清理活动.我为此使用什么活动?
谢谢.
Hi there,
I need to perform some cleanup activity when my webpage is closed . What event do i use for this?
Thanks.
推荐答案
使用
this.Closing
事件
不要使用
event
Do not use
this.Close
事件,它将无法正常工作
event, it will not work
这篇关于关闭页面时要执行的代码使用什么事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文