摘要: document.querySelector(“#xxxx”).scrollIntoView({ behavior:"smooth", //带滚动效果 block:"start" //上边框与顶部空间对齐 默认值 }) 当然这个是原生js,所有在任何地方都可以使用.不仅仅是在vue里面 阅读全文
posted @ 2021-03-10 16:11 熊灬火火 阅读(138) 评论(0) 推荐(0)