1. <script src="jquery.js" type="text/javascript"></script>
  2. <script src="jquery.lazyload.js" type="text/javascript"></script>

 

 

然后在页面的 header 添加如下代码即可:

  1. <script type="text/javascript"></script>
  2. $(document).ready(function(){
  3.     $("img").lazyload({
  4.         placeholder : "/images/grey.gif",
  5.         effect : "fadeIn"
  6.     });
  7. }
  8. </script>

 

相关文章:

  • 2022-12-23
  • 2021-08-16
  • 2021-06-07
  • 2021-12-26
  • 2021-11-29
  • 2022-02-16
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2021-12-19
  • 2021-06-14
  • 2022-03-05
相关资源
相似解决方案