I have a lot of graphic messages, how can I achieve the effect of pulling down to load more messages?
巴扎黑2017-07-05 10:39:47
Actually, drop-down loading also has a paging effect. When the bottom of the slide is reached or how far away from the bottom it is, Ajax requests data and appends the data to the page to achieve this effect; it is mainly due to cooperation with the background!
巴扎黑2017-07-05 10:39:47
Request data paging, monitor page height and data length, load more in real time, click to load waterfall flow data
phpcn_u15822017-07-05 10:39:47
If it is a list page, you can follow the instructions above to reach the bottom of the request interface, or use an online plug-in like an app to elastically pull up to load more. If it is a details page, you can mainly use lazy loading of images. , resources are loaded on demand, no need to pull up to load more, and then request the interface
高洛峰2017-07-05 10:39:47
Do you want this effect?
http://www.codegong.com/categ...
The jqueryias.min.js sliding paging is used here, which feels pretty good.
Old D blog also uses this plug-in.