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} },