如何让一个div自动滚动到底部呢?

解决方案

const div = document.getElementById('divDetail'); 
div.scrollTop = div.scrollHeight;