Last active
June 30, 2017 07:05
-
-
Save southill/9ca8d4a49f3c064b9233a9fe2dfe58c3 to your computer and use it in GitHub Desktop.
解决微信内核为wkwebview时返回上一页界面不刷新的问题 onpageshow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onpageshow = function(event){ | |
if (event.persisted) { | |
window.location.reload(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment