Javascript 如何有一个固定链接可以滚动到fullPage.js中的每个部分?

Javascript 如何有一个固定链接可以滚动到fullPage.js中的每个部分?,javascript,jquery,fullpage.js,Javascript,Jquery,Fullpage.js,所以我想要一个固定在窗口底部的向下箭头,向下滚动到每个部分。因此,我单击它一次,它会将我向下滚动到第一个部分,我再次单击它,它会将我带到下一个部分,依此类推。。如何使用fullPage.js实现这一点 <nav> <a>this is the arrow</a> </nav> <section id="one"> <h1>ONE</h1> </section> &l

所以我想要一个固定在窗口底部的向下箭头,向下滚动到每个部分。因此,我单击它一次,它会将我向下滚动到第一个部分,我再次单击它,它会将我带到下一个部分,依此类推。。如何使用fullPage.js实现这一点

<nav>
  <a>this is the arrow</a>
</nav>

<section id="one">
    <h1>ONE</h1>
</section>

<section id="two">
    <h1>TWO</h1>
</section>

<section id="three">
    <h1>THREE</h1>
</section>

<section id="four">
    <h1>FOUR</h1>
</section>

<section id="five">
    <h1>FIVE</h1>
</section>

这是箭头
一个
两个
三
四
五

在使用fullPage.js时,您需要使用fullPage.js函数,例如:

例如:

$('.arrow').on('click', fullpage_api.moveSectionDown);