获取dom元素那些讨厌的位置封装代码

2019-06-06 00:46:48刘景俊

return elem === window ? p :
{x:p.y - _this.offset().top, y:p.x - _this.offset().left};
}
return _this;
}
</script>
</body>
</html>