!isTop 取反不是等于false了吗?为什么下面还要设置isTop = false
!isTop 取反不是等于false了吗?为什么下面还要设置isTop = false?
var isTop = true;
window.onscroll = function(){
if(!isTop){
clearInterval(timer);
}
isTop = false;
}
!isTop 取反不是等于false了吗?为什么下面还要设置isTop = false?
var isTop = true;
window.onscroll = function(){
if(!isTop){
clearInterval(timer);
}
isTop = false;
}
2015-05-07
举报