CodePudding user response:
Now there is no perfect closed, refresh and jump method,Don't put your business logic on the page,
CodePudding user response:
What browser are you using? With IE can run perfect, with firefox and Google, can only be triggered once, when the second page refresh, directly refresh, won't promptCodePudding user response:
Window. Onbeforeunload=function (event) {//...
}
Closed or jump triggered, refresh does not trigger,,,
CodePudding user response:
Window. The onunload=function (event) {//,,,
}
Same as above
CodePudding user response:
Refresh or triggers