var obj1 = document.getElementById('container'); var obj2 = document.getElementById('text'); var t; obj1.addEventListener('scroll',function() { if(t) clearTimeout(t); t = setTimeout(function() { if(obj1.scrollTop + obj1.offsetHeight == obj1.scrollHeight){
// do something obj2.innerText = '暂无更多' } },100) }, false)