摘要: heightToTop(ele) { //ele为指定跳转到该位置的DOM节点 let root = document.body let height = 0 do { height += ele.offsetTop ele = ele.offsetParent } while (ele !== r 阅读全文
posted @ 2021-08-23 16:38 叶子0321~ 阅读(514) 评论(0) 推荐(0) 编辑