Why the property defined by Object.defineProperties() is not seen in Object.keys()?

前端 未结 0 1773
一个人的身影
一个人的身影 2020-12-31 10:34
let user = {
    name: "John",
    surname: "Smith"
};

Object.defineProperty(user, \'fullName\', {
    value: \'J Smith\'
});

for (const key in         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题