How to set up jquery or js to monitor web page refresh and browser closing
闭关修行中......
window.onbeforeunload = function () {
//你的代码
}
window.onbeforeunload = function () {
}