摘要: const io = new IntersectionObserver(callback); let imgs = document.querySelectorAll('[data-src]'); function callback(entries){ entries.forEach((item) => { if(item.isIntersecting){ item.target.src = it 阅读全文
posted @ 2019-12-24 19:59 朵拉.科波菲尔 阅读(263) 评论(0) 推荐(0) 编辑