滚动到指定位置scrollIntoView() https://blog.csdn.net/learn8more/article/details/108047794 dom.scrollIntoView( {behavior: 'smooth'} );