摘要: const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ? "Mobile" : "Desktop"; co 阅读全文
posted @ 2023-01-29 09:00 磊~~ 阅读(21) 评论(0) 推荐(0) 编辑
摘要: const callback = (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { // `entry.target` is the dom element console.log(`${entry.tar 阅读全文
posted @ 2023-01-29 08:59 磊~~ 阅读(20) 评论(0) 推荐(0) 编辑