let Person = { age: 1 } Object.defineProperty(Person, 'name', { // value: 'liucao', // writable: false, get: () => Person.age, set: (a) => { Person.age = a } }) Person.name = 2 console.info(Person.age)