复制1const person = { name: "Lydia" }; 2 3Object.defineProperty(person, "age", { value: 21 }); 4 5console.log(person); 6console.log(Object.keys(person));
1const person = { name: "Lydia" }; 2 3Object.defineProperty(person, "age", { value: 21 }); 4 5console.log(person); 6console.log(Object.keys(person));
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!