js [ IntersectionObserver ]滑动监听是否进入视野的方法

const intersectionObserver = new IntersectionObserver((entries) => { // 如果 intersectionRatio 为 0,则目标在视野外, // a56爆大奖在线娱乐们不需要做任何事情。 if (entries[0].intersectionRa
posted @ 2023-04-27 17:27  半遮  阅读(63)  评论(0编辑  收藏  举报