Vue-cli to bottom load

how do you get the distance from the last li in a div to the bottom of the window? Send the request after the end

then repeat the previous step

Feb.27,2021

is the same as using ref in ordinary dom (vue), scroll the container to bind the scroll event, and getBoundingClientRect () get it. Since it is the last li, directly get the distance at the bottom of the div (maybe minus the height of loading animation div?) Just get this value and make a judgment.

Menu