dom scrollTo 平滑滚动

dom scrollTo 平滑滚动

Element.scrollTo({
    left: 0,
    top: 100,
    behavior: 'smooth'
})