方式一:
此方法可以将界面跳转到界面底部,不过有略微的偏差。精度不太准确。
document.getElementById("toArea").scrollIntoView({block:'end', behavior: 'smooth'})
方式二:
此方法可以可以设置精度。
const element = document.getElementById('IntelligentReimbursement');
const targetScrollTop = element.offsetTop + 980; // 980px是你想要的滚动偏移量
window.scrollTo({
top: targetScrollTop,
behavior: 'smooth'
});