function getLeftAndTop(divId){
    let dom  = document.getElementById(divId)
    let left = dom.getBoundingClientRect().left + 'px'
    let top = dom.getBoundingClientRect().top + 'px'
    return {left:left,top:top}
},

余大鱼
41 声望1 粉丝

雷猴呀!