使用js來觸發(fā)點擊事件
<script>
//監(jiān)聽滾動事件
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>