摘要: 使用scrollIntoView方法,添加滚动行为。设置"smooth "属性实现平滑的滚动动画。 滚动到顶部 const scrollToTop = scrollEle => scrollEle.scrollIntoView({ behavior: "smooth", block: "start" 阅读全文
posted @ 2022-03-04 11:27 YINGYAN 阅读(755) 评论(0) 推荐(0) 编辑