JavaScript - bfcache/pageshow event - event.persisted always set to false?

后端 未结 3 1362
灰色年华
灰色年华 2021-02-02 01:59

In a standard Java / SpringMVC / JSP / jQuery web-app, I\'m trying to detect a \"Back\" (or history.go(-1)) event, in order to refresh (AJAX) a summary component/panel content w

3条回答
  •  盖世英雄少女心
    2021-02-02 02:19

    This appears to be a bug in Chrome (also present in IE11).

    I have found the following workaround:

    
    
    

    This exploits the fact that in most browsers, when the page is loaded from the cache, form fields values are also conserved.

提交回复
热议问题