Automatic loading at the bottom of the scroll is often used to the following code
function () { if(container.scrolltop () + container.height () >= container.prop ("ScrollHeight")) { loadnextpage (); }});
where Container.prop ("ScrollHeight") is equivalent to Container.get (0). ScrollHeight is used to get the true height of the container, this true height includes the part that is rolled up by the scroll bar
However, it should be noted that if the container is not displayed (such as being designed into a tab, Display=none), then ScrollHeight is not able to get the height of container!
Similarly, the value obtained using the Getboundingclientrect method is also 0.
That is, getboundingclientrect and scrollheight can only be used in the case of element display , which should be noted in the scrolling load under Design tab and in the search for modules such as auto-complete dropdown boxes.
About jquery implementation scrolling to the bottom of the automatic loading should be noted in the place