⬇️ 一个lazyload Demo
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
img
README.md
index.css
index.html
index.js
index1.js
normalize.css

README.md

lazyload

Demo 待完善

试试懒加载。。

Demo地址:http://axuebin.com/lazyload/

两种方法

index.js文件中是用getBoundingClientRect()方法的

index1.js文件中是用IntersectionObserver()方法的