📅  最后修改于: 2022-03-11 15:03:15.203000             🧑  作者: Mango
var checkExist = setInterval(function() {
if ($('#my-element').length) {
console.log("Exists!");
clearInterval(checkExist);
}
}, 100); // check every 100ms