mounted: function mounted() {
$("#S_content").scroll(function() {
var scrollHeight = $("#S_content").scrollTop(); // 滚动高度
var rHeight = $("#S_content").get(0).scrollHeight; // 内容高度
var seeHeight = $("#S_content").height(); // 可见高度
if (scrollHeight + seeHeight >= rHeight) {
app.fourSMore(); // 调用方法
}
});
}
Vue滚动到底部自动加载
最新推荐文章于 2024-06-27 16:37:52 发布