代码改变世界

performance 判断页面是以哪种方式进入的

2019-01-22 14:49  改吧  阅读(533)  评论(0编辑  收藏  举报

if (window.performance) {
console.info("window.performance is supported");
console.log(performance.navigation.type)
}