performance 判断页面是以哪种方式进入的
程序员文章站
2024-01-24 10:48:28
if (window.performance) { console.info("window.performance is supported"); console.log(performance.navigation.type) } ......
if (window.performance) {
console.info("window.performance is supported");
console.log(performance.navigation.type)
}