<script type="text/javascript"> $(document).ready(function () { $('#fullpage').fullpage({ anchors: ['page1', 'page2', 'page3', 'page4', 'page5', 'page6'], afterLoad: function (anchorLink, index) { if (index.index == 2) { $('.counter').countUp(); } }, onLeave: function (anchorLink, index) { if (index.index == 6) { $("#section6").addClass("active2"); } else { $("#section6").removeClass("active2"); } }, css3: true, scrollingSpeed: 1000, keyboardScrolling: true, navigation: true, }); }) </script>
上一篇:js 根据链接url做跳转
下一篇:jquery 导航nav下拉