function scroll(){
time1 = window.setInterval(function(){
all_member.style.top = String(-member_array.length*50)+"px";
},500)
time2 = window.setInterval(function(){
all_member.style.top = "0px";
},1000)
}
function scroll(){
time1 = setInterval(function(){
all_member.style.top = String(-member_array.length*50)+"px";
},500)
time2 = setInterval(function(){
all_member.style.top = "0px";
},1000)
}
写window 和不写有什么区别??
一般来说没区别,在上面的例子中完全没有区别。
写
window
可避免一些命名空间冲突的问题。