為什么我這個代碼不會滾動,審查元素的時候說Move is not defined
<script>
window.onload = function Move(){
? ? var area = document.getElementById("b2");
? ? area.scrollTop++;
setTimeout("Move()",500);
}
<script>
window.onload = function Move(){
? ? var area = document.getElementById("b2");
? ? area.scrollTop++;
setTimeout("Move()",500);
}
2016-05-23
舉報
2016-06-28
window.onload ?去掉試試
2016-05-24
你把setTimeout("Move()",500);寫成setTimeout(Move,500);試試