if(ksarea+scrollheight>=ptop){
hist(data_2,"myChart_2");
}
}//如何满足条件,只执行一次函数呢,现在只要满足条件函数就一直在执行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
如楼上,加锁是其中一种解决办法,另外如果是只执行一次的话,可以removeEventListener了。