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