1// set
2 var timerid = setTimeout(() => {
3 console.log('hi :D ');
4 }, 1000);
5// clear
6 clearTimeout(timerid);
7// Syntax
8 // set
9 myVar = setTimeout("javascript function", milliseconds);
10 // clear
11 clearTimeout(id_of_settimeout);
12/ Rnadco.ir /
1if (timerid) {
2 clearTimeout(timerid);
3}
4
5timerid = setTimeout(() => {
6 this.reqMaq(obj['fkmaqid'])
7}, 2000);