如果元素可见滚动如何应用?

How to apply if an element is visible scrolling?

元素可见滚动如何应用? 但事件滚动不

这是我的代码

$$(document).on('scroll', '.page-content', function()
{
    console.log('scroll');
});

但是滚动事件不起作用

在 framework7 中,如果您想检测页面内容上的滚动,您需要在该特定 div.

上添加滚动事件
<div class="page-content index-page-content"></div>

这个div页面内容class是important.SoJS应该是

$$('.index-page-content').on('scroll',function(e){console.log("scroll happened");});

试试这个 one.It 会 work.Hope 这有帮助