window.onpageshow=function(e){ var a=e||window.event; alert(a.persisted); if(a.persisted){ //alert("页面读取了缓存") } }