https://css-tricks.com/snippets/jquery/smooth-scrolling/
下面这代码和文章内容无关
(function smoothscroll(){
var currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
if (currentScroll > 0) {
window.requestAnimationFrame(smoothscroll);
window.scrollTo (0,currentScroll - (currentScroll/5));
}
})();
提示:你可以先修改部分代码再运行。
