摘要: 方法1:写一个隐藏的input框,让input聚焦,滚动条自动会滚到input所在位置 <input type="text" ref="input"/> this.$refs.input.focus() 方法2: 用scrollIntoView() <div ref="box"></div> thi 阅读全文
posted @ 2021-06-08 15:35 pyx204 阅读(65) 评论(0) 推荐(0)