For example, if I want to lazily load images, is there an event to represent the event that occurs when the img DOM scrolls down in the browser and the dom scrolls to the user's current window?
學(xué)習(xí)是最好的投資!
You can use getBoundingClientRect to determine whether the element is within the window. For details, please refer to
http://www.cnblogs.com/cococe...