滚动到指定位置scrollIntoView()

https://blog.csdn.net/learn8more/article/details/108047794

dom.scrollIntoView(

      {behavior: 'smooth'}
  );
原文地址:https://www.cnblogs.com/wsj1/p/15479232.html