[英]scroll extend jQuery like facebook
<script type="text/javascript">
jQuery(document).ready(
function() {
jQuery('.scroll_container').scrollExtend(
{
'target': 'div#scroll_items',
'url': 'components/com_a_main_search/more_content.php?limit='+???????,
'newElementClass': 'list_item more_content'
}
);
}
);
</script>
How can pass incremental value instead of "???????" 如何传递增量值而不是“ ???????”
Thanks for help 感谢帮助
store it in a variable and pass it. 将其存储在变量中并传递。
for eg. 例如 )
)
<script type="text/javascript">
jQuery(document).ready(
$inc = 1;
function() {
jQuery('.scroll_container').scrollExtend(
{
'target': 'div#scroll_items',
'url': 'components/com_a_main_search/more_content.php?limit='+$inc,
'newElementClass': 'list_item more_content'
}
);
}
);
</script>
I 'm not very sure if this is what you are looking for as I couldn't have any better understanding from the question. 我不太确定这是否是您要寻找的东西,因为对此问题我无法更好地理解。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.