const el = document.getElementById('example')window.scrollBy(0, el.getBoundingClientRect().top)
const el = document.getElementById('example')
window.scrollBy(0, el.getBoundingClientRect().top)
若有收获,就点个赞吧
0 人点赞
让时间为你证明