JavaScript SetTimeout
setTimeout(function(){ alert("Hello"); }, 3000);
Bald Eagle
setTimeout(function(){ alert("Hello"); }, 3000);
setInterval(function(){
console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 seconds
setTimeout(function(){
//code goes here
}, 2000); //Time before execution
setTimeout(() => { alert('Hello') }, 1000)
setInterval(function(){
console.log("Hello");
console.log("World");
}, 2000); //repeat every 2s
loadingProgress(max, jump, speed) {
const loadBar = setInterval(() => {
if(this.load_current < max){
this.load_current += jump || 1;
} else {
clearInterval(loadBar);
this.onOk()
if(this.isFrom == 'isReject') {
this.$emit('loadRejectErros');
}
}
}, speed);
},