//平滑滚动到顶部
const scrollToTop = () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
})
}
js 平滑滚动到顶部
最新推荐文章于 2023-12-13 16:17:17 发布
//平滑滚动到顶部
const scrollToTop = () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
})
}