Has anyone ever done anything like JD.com, where the page scrolls down and the content is gradually rendered and inserted?

I haven"t done it. I want to know what the train of thought is

. Does

first store each section structure as a string, then scroll to the specified location, and execute the following code?

is similar to paging loading, but the content and layout of each section are different

$("-sharpsection_01").html(section_01_template);

do you have any friends who have sat on it? can you give me a reference to the code?

Mar.01,2021

listens for scrolling events to determine whether the current scrollTop+height of $('- sharpsection_01') is equal to scrollHeight


to implement drop-down loading?
1, get the height of the current browser clientHeight
2, when the scrolling height is equal to clientHeight, request the next page of data, the original data + = the data of the new page
to load the data when the content of the page is displayed in the current window (load on demand)?
then you can request data when the current content is displayed.
the code writes


this is the same as sliding loading, but it is a request ajax interface for how many requests are left from the bottom. What you need to do is to get the data that has been defined in advance.
as for up-sliding loading, onscroll determines the distance between the bottom of the content area and the container.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31a66-2bda4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31a66-2bda4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?