为什么我的scrollTop++没用呢
window.onload = function(){ var oGUN = document.getElementById("GUN") ; var oUl1 = document.getElementById("ul1") ; var oUl2 = document.getElementById("ul2") ; oUl2.innerHTML = oUl1.innerHTML ; oGUN.scrollTop = 0 ; var timer = setInterval(scrollUp,50) ; function scrollUp(){ if(oGUN.scrollTop >= oUl1.offsetHeight){ oGUN.scrollTop = 0 ; }else{ oGUN.scrollTop++ ; alert(oGUN.scrollTop); } } }