JS 如何获取控件对应的屏幕坐标function getPos(o) 取元素坐标 { var x = 0, y = 0 do { x += o.offsetLeft y += o.offsetTop } whil2023-04-25JavaScript260