JP
Size: a a a
JP
S
S
LL
S
S
S
Д
Д
Д
S
S
ТХ
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;
М
CM
CM
LL