您可以使用JavaScript编写代码来实现自动加载功能。下面是一个简单的示例代码:

// 当页面滚动到底部时触发加载更多评论函数
$(window).scroll(function() {
   if($(window).scrollTop() + $(window).height() == $(document).height()) {
      loadMoreComments();
   }
});

function loadMoreComments() {
   // 在此处编写加载更多评论的代码
}

这段代码会检测页面是否滚动到底部,如果是,则会自动触发加载更多评论的函数。您需要在loadMoreComments()函数中编写实际的加载更多评论的代码。

div class=col-12 ThreeTextHide style=padding-bottom 20px button type=button class=btn btn-outline-secondary w-100 more_comments点击加载更多NOtton div怎么改让它自动加载

原文地址: https://www.cveoy.top/t/topic/g8Hq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录