mls: m/component/lazyLoad.js
document.elementFromPoint(x, y)
jquery.lazyload.js
https://github.com/tuupola/jquery_lazyload
http://www.cnblogs.com/yangjunhua/p/3871763.html
內(nèi)部原理
首先選中的img元素都綁定了一個(gè)appear事件(處理img顯示真實(shí)的圖片地址),方便以后滿足條件時(shí)觸發(fā)該事件;在配置對象中有一個(gè)container屬性配置,默認(rèn)為window,如果img元素在該container容器視口中,則觸發(fā)appear事件;為了判斷img元素是否在container容器視口范圍中,造了如下四個(gè)輪子:
$.belowthefold = function(element, settings) {}; // 在視口下方
$.rightoffold = function(element, settings) {}; // 在視口右方
$.abovethetop = function(element, settings) {}; // 在視口上方
$.leftofbegin = function(element, settings) {}; // 在視口左方
https://xiejiancong.com/post-239.html
http://ujipin.com/tag/18e6c0aff8ed4a089513b677b2a642e7