一个轻量级jQuery插件的单页网站导航。增加了平滑滚动当单击导航和自动选择正确的导航项当你浏览不同的部分。$('#nav').onePageNav({ currentClass: 'current', changeHash: false, scrollSpeed: 750, scrollThreshold: 0.5, filter: '', easing: 'swing', begin: function() { //I get fired when the animation is starting }, end: function() { //I get fired when the animation is ending }, scrollChange: function($currentListItem) { //I get fired when you enter a section and I pass the list item of the section } });