滚动像Facebook一样扩展jQuery


<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>

如何传递增量值,而不是" ???????"

感谢您的帮助

将其存储在变量中并传递。

例如。)

<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不太确定这是否是您要寻找的,因为我无法从问题中获得更好的了解。

最新更新