摘要:
用于判断页面是否在底部 const scrolledToBottom = () => document.documentElement.clientHeight + window.scrollY >= document.documentElement.scrollHeight; scrolledTo 阅读全文
摘要:
const isTabInView = () => !document.hidden; console.log(isTabInView()); 阅读全文