Solve window.history.go (-1) without refreshing the page after execution problems

Appears on the iphone window.history.go (-1) without refreshing the page after performing problem, Andrews will not have this problem.

Solution for page after returning plus:

window.addEventListener ( ' pageshow ' , function (E) {
     // if detected that the page is read from the "cache serving" in the refresh page 
    IF (e.persisted) { 
        window.location.reload (); 
    } 
}) ;

 

Guess you like

Origin www.cnblogs.com/luoyihao/p/12665868.html