JavaScript Funkcja strzałki Settimeout
doWork(callback) {
setTimeout(() => callback(this.name), 15);
}
webdevjaz
doWork(callback) {
setTimeout(() => callback(this.name), 15);
}
if (timerid) {
clearTimeout(timerid);
}
timerid = setTimeout(() => {
this.reqMaq(obj['fkmaqid'])
}, 2000);