search

Home  >  Q&A  >  body text

javascript - Please tell me how to achieve a drop-down loading effect!

I have a lot of graphic messages, how can I achieve the effect of pulling down to load more messages?

代言代言2723 days ago860

reply all(4)I'll reply

  • 巴扎黑

    巴扎黑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!

    reply
    0
  • 巴扎黑

    巴扎黑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

    reply
    0
  • phpcn_u1582

    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

    reply
    0
  • 高洛峰

    高洛峰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.

    reply
    0
  • Cancelreply