简介:
JS控制滚动条保持在最底部
let el = document.querySelector('#log-content') document.querySelector('#log-content').scrollTo({ top: el.scrollHeight - el.offsetHeight, behavior: 'smooth' })
微信扫码关注DEMO程序园公众号