var Height=document.body.clientHeight;
$(document).bind("mousewheel DOMMouseScroll scroll", function (e) {
if ($(window).scrollTop()==Height) {
alert(1);
}
});
为什么alert(1)不执行,改成
if ($(window).scrollTop()>=Height) {
alert(1);
}时才执行。可是我只想让alert(1)执行一次
stone310
李晓健
那个只执行一次的函数是什么意思?
第一次立即执行setInterval函数
如果 多个包 同时依赖某一个包,会被导入执行几次?
如何让两个函数循环执行
相关分类