需求 划分一块滚动区域,在指定的时刻,使其滚动条滚动到底部 基础知识 关键的部分 div.scrollTop = div.scrollHeight; 解决方案 let dom = document.getElementById('contain') dom.scrollTop = div.scrollHeight