Javascript widget inspired by iPhone UITableView?

前端 未结 4 1461
野性不改
野性不改 2021-01-03 02:16

Cocoa Touch\'s UITableView allows a user to scroll through large numbers of data rows with good performance because it recycles table rows. Rather than create a GUI element

4条回答
  •  旧时难觅i
    2021-01-03 02:50

    infinity.js works well. It will dynamically load 'pages' behind the scenes giving you the appearance that the list has been fully loaded.

    More information can be found on their Github page - https://github.com/airbnb/infinity

    Additionally, I've forked the project updating it to work with Zepto. I also set it up to use any scrollable div (set up with overflow: scoll) with the class 'scrollable' - https://github.com/elliotcw/infinity

    I should add that I made these changes as this is great for large lists on mobile devices, which slow down when you have to many complex elements on the page.

提交回复
热议问题