记一次懒加载实现
摘要:const imgs = document.getElementsByTagName('img'); const viewHeight = window.innherHeight || document.documentElement.clientHeight; let num = 0; function lazyLoad() { for (let i = num; i = 0) { ...
阅读全文
posted @ 2019-01-24 16:53