<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <title>懒加载</title> <link rel="stylesheet" href="../css/mui.min.css" /> </head> <body> <header class="mui-bar mui-bar-nav"> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> <h1 class="mui-title">lazyload(延迟加载) </h1> </header> <div class="mui-content"> <ul id="list" class="mui-table-view mui-table-view-chevron"> <li class="mui-table-view-cell mui-media"> <a class="mui-navigate-right"><img class="mui-media-object mui-pull-left" data-lazyload="http://p0.qhimgs4.com/t0191c0cf8fcaebea92.webp"><div class="mui-media-body">主标题<p class="mui-ellipsis">列表二级标题</p></div></a> </li> </ul> </div> <script type="text/javascript" src="../js/mui.min.js" ></script> <script type="text/javascript" src="../js/jquery-1.10.2.js" ></script> <script type="text/javascript" src="../js/mui.lazyload.js" ></script> <script type="text/javascript" src="../js/mui.lazyload.img.js" ></script> <script type="text/javascript"> mui.init(); (function($) { var list = document.getElementById("list"); $(document).imageLazyload({ placeholder: ‘../img/defaultSmall.jpg‘, }); })(mui); </script> </body> </html>