董俊辉的前端博客 - [JavaScript]JavaScript获取元素到页面左边、顶部的距离 的评论
type: channel
link: https://www.dongjunhui.com/archives/30/
description: 刚开始写了个递归：function getOffsetPosition(element, x, y){ x = x || 0; y = y || 0; if(element.o...