1setInterval(function(){
2 console.log("Oooo Yeaaa!");
3}, 2000);//run this thang every 2 seconds
1setInterval(function(){
2 console.log("Hello");
3 console.log("World");
4}, 2000); //repeat every 2s
1loadingProgress(max, jump, speed) {
2 const loadBar = setInterval(() => {
3 if(this.load_current < max){
4 this.load_current += jump || 1;
5 } else {
6 clearInterval(loadBar);
7 this.onOk()
8 if(this.isFrom == 'isReject') {
9 this.$emit('loadRejectErros');
10 }
11 }
12 }, speed);
13},