将指定的element滚动到窗顶 wilent · 2015-09-18 20:22 · javascript · Web前端 · Markdown var top = $('#comment-bar').offset().top; document.body.scrollTop = top;