📅  最后修改于: 2022-03-11 15:02:50.033000             🧑  作者: Mango
function waitForElement(){
if(typeof someVariable !== "undefined"){
//variable exists, do what you want
}
else{
setTimeout(waitForElement, 250);
}
}