📅  最后修改于: 2022-03-11 15:02:02.288000             🧑  作者: Mango
let rect1 = document.querySelector('.perso').getBoundingClientRect();
let rect2 = document.querySelector('.obstacle').getBoundingClientRect();