js判断当前页面是否是直接打开,判断当前页面是否由其他页面跳转
//
const referrer = document.referrer
if(referrer === '') {
alert('直接打开')
}
A little hug, little gift.
All of little something.
these are our meories.
//
const referrer = document.referrer
if(referrer === '') {
alert('直接打开')
}