没有大神 帮写断jq的瀑布流 下拉自动刷新
注意是jquery
<script>
//监听滚动事件
let timer = null;
document.addEventListener('scroll', function () {
clearTimeout(timer);
//判断是否滚动到 底部
if (window.innerHeight + window.scrollY >= document.body.offsetHeight - 50){
timer = setTimeout(function(){
document.getElementById('gundong').click();
},300)
}
});
</script>
这段在jquery的js里不生效 能否用jquery的方式写个js来触发下拉刷新时间