Micro letter open the page jump back to the previous screen, make the page refresh before

在跳转之前的页面中加入以下代码
window.onpageshow = function(event){
  if (event.persisted) {
    window.location.reload();
   } 
}

 

From the micro-channel public number: Programming Society

Advanced programmers daily book, please pay attention!

Guess you like

Origin www.cnblogs.com/ai10999/p/11455357.html