使用onbeforeunload事件检测窗口是否刷新或关闭

NoSuchKey