Ale zná. Je je to potřeba napsat na správný místo.
class Foo {
test() {
console.log('bar');
}
show() {
setTimeout((function () {
return this.test();
}).bind(this), 100);
}
}
Ale zná. Je je to potřeba napsat na správný místo.
class Foo {
test() {
console.log('bar');
}
show() {
setTimeout((function () {
return this.test();
}).bind(this), 100);
}
}