判断页面是不是从缓存中读取的,如果是就刷新页面
window.addEventListener('pageshow', function(e) { if (e.persisted) { window.location.reload() } })