echo.js使用教程:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>echo.js</title>
</head>
<body>
<img src="./img/1.jpg" alt="photo" data-echo="./img/2.jpg">
</body>
<script type="text/javascript" src="./dist/echo.js"></script>
<script type="text/javascript">
Echo.init({
offset: 200,
throttle: 1050 //设置图片延迟加载的时间
});
</script>
</html>