Home > front end > Set the setTimeout in vue of ajax callback, how to accurately remove before page destroyed?
Set the setTimeout in vue of ajax callback, how to accurately remove before page destroyed?
Time:11-28
This is to perform as a result, the code is as follows:
CodePudding user response:
Abnormal inside why trigger timer, forced to interrupt an ajax into abnormal for certain, but the jump page again (timer hasn't open how clear? Ajax exception this time to start the timer
CodePudding user response:
Find a solution that directly define a loop, the initialization is set to true, the page before destruction is set to false, the judge in the tt function loop to true to perform, or does not perform, perfect to solve this problem