<script type="text/javascript">
function lastAddedLiveFunc(goto) {
alert(goto) ;
jQuery('.scroll_container').scrollExtend(
{
'target': 'div#scroll_items',
'url': 'components/com_a_main_search/more_content.php?limit='+goto,
'newElementClass': 'list_item more_content'
}
);
}
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
$('#limit').val( Number($('#limit').val()) + 2 );
lastAddedLiveFunc($('#limit').val());
}
});
go 的值总是 0 ?????? 虽然我把
alert(goto)
它显示正确的值在此行中始终为 0
'url': 'components/com_a_main_search/more_content.php?limit='+goto,
请帮忙