document.getElementById('jumpId').scrollIntoView({behavior: 'smooth'}) 注释: behavior 属性值为'smooth'时有平滑滚动动画