【发布时间】:2018-02-26 12:21:26
【问题描述】:
我使用这段代码在页面刷新时删除 sessionStorage。
if (window.performance) {
if (performance.navigation.type == 1) {
sessionStorage.removeItem("rowsCache");
}
}
它可以工作,但是,window.performance 在 mac safari 9 上抛出 undefined。 有没有其他选择?
【问题讨论】:
标签: javascript jquery refresh back