📌  相关文章
📜  如何等到设置变量 javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:50.033000             🧑  作者: Mango

代码示例1
function waitForElement(){
    if(typeof someVariable !== "undefined"){
        //variable exists, do what you want
    }
    else{
        setTimeout(waitForElement, 250);
    }
}