页面移动到当前元素位置 先绑定点击事件 绑定之后点击事件回调函数中使用div下面的方法 <div id="bottom"></div> document.getElementById('bottom').scrollIntoView();