// 等待DOM更新后,将class的dom滚动到可视区域
setTimeout(() => {
const activeMonthElement = document.querySelector('.month-text.active');
if (activeMonthElement) {
activeMonthElement.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' });
}
}, 0);
将当前class的dom,滚动到可视区域
最新推荐文章于 2025-12-21 15:46:00 发布
1464

被折叠的 条评论
为什么被折叠?



