Html5 页面后退并刷新
a页面
window.onload = function () { var data = sessionStorage.getItem( "FirstLoad" ); if (data) { if (data == "0" ) { sessionStorage.setItem( "FirstLoad" , "1" ); location.reload(); } } else { sessionStorage.setItem( "FirstLoad" , "1" ); } }
|
sessionStorage.setItem(
"FirstLoad"
,
"0"
);
history.back();