pageshow persisted 总是 false

如果帮助到您,请轻点【喜欢】

bfcache/pageshow event - event.persisted 总是 false,
stackoverflow上看到如下办法,具体含义未查:

window.addEventListener('pageshow', function (event) {
        if (event.persisted || window.performance && 
            window.performance.navigation.type == 2) 
        {
            location.reload();
        }
    },false);

引用:https://stackoverflow.com/questions/17432899/javascript-bfcache-pageshow-event-event-persisted-always-set-to-false

你可能感兴趣的:(pageshow persisted 总是 false)