摘要: 1.获取当前dom相对于document的偏移量 1 const getOffset = el => { 2 console.log(el); 3 const {top, left} = el.getBoundingClientRect(); 4 const {scrollTop, scrollLe 阅读全文
posted @ 2020-08-31 16:07 半糖也甜吖 阅读(541) 评论(0) 推荐(0) 编辑