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();
来源:oschina
链接:https://my.oschina.net/u/4324410/blog/3646012