简体   繁体   English

如何在向下滚动事件时动态加载新数据并将新数据附加到同一可扩展的可折叠div部分

[英]How to dynamically load and append new data to the same exapanded collapsible div section on scroll down event

using jquery mobile collapsible set(accordian) div,i have loaded multiple sections with data.On expanding a collapsible section div, i need to show only first 20 data from server side. 使用jQuery移动可折叠集(accordian)div,我已经加载了多个部分的数据。在扩展可折叠部分div时,我只需要显示服务器端的前20个数据。 While scrolling down and on reaching the end of 20 th data of expanded collapsible div section,i need load to next 20 data from server side and append it at the end of same expanded collapsible section. 在向下滚动并到达扩展的可折叠div部分的第20个数据的末尾时,我需要从服务器端加载到下一个20个数据并将其附加在同一扩展的可折叠的部分末尾。

What event or listener to be used to detect cursor scroll down event has reached the end of expanded collapsible div section? 哪个事件或侦听器可用来检测光标向下滚动事件已到达展开的可折叠div部分的末尾? And How to dynamically load and append new data to the same exapanded collapsible div section on scroll down event (like facebook load data?) 以及如何在向下滚动事件中动态加载新数据并将新数据附加到同一可扩展的div区段(如facebook加载数据?)

$().scroll(function...) is your solution. $()。scroll(function ...)是您的解决方案。 Your fonction will be called each time the user scroll. 每次用户滚动时,都会调用您的函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM