И
class Unit {
options = {
active: false,
};
constructor() {
new Proxy(this.options, {
set(target, prop, val) {
console.log('Сработала ловушка'); // Не работает
return true;
}
});
}
}
let unit = new Unit();
unit.options.active = true;
Size: a a a
ТХ
class Unit {
options = {
active: false,
};
constructor() {
new Proxy(this.options, {
set(target, prop, val) {
console.log('Сработала ловушка'); // Не работает
return true;
}
});
}
}
let unit = new Unit();
unit.options.active = true;
🦜
class Unit {
options = {
active: false,
};
constructor() {
new Proxy(this.options, {
set(target, prop, val) {
console.log('Сработала ловушка'); // Не работает
return true;
}
});
}
}
let unit = new Unit();
unit.options.active = true;
🦜
Kb
YZ
RS
YZ
Kb
RS
RS
Kb
RS
Kb
Kb
RS
CM
UM
NR