검색 결과 무한 스크롤
var list = 리스트; var scrollTop; var inerHeight; var scrollHeight; var timer; list.scroll(function(){ scrollTop = parseInt($(this).scrollTop()); innerHeight = parseInt($(this).innerHeight()); scrollHeight = parseInt($(this)[0].scrollHeight); if($(this).children().children("li").length > 0 && scrollTop + innerHeight >= scrollHeight-2){ if(timer) clearTimeout(timer); timer = setTimeout(function(){ /..
2020. 1. 7. 12:17