We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for ...in ...可以把原型对象身上的属性遍历出来 Object.keys() 不能把原型对象身上的属性遍历出来
属性描述对象: JavaScript 提供了一个内部数据结构,用来描述对象的属性,控制它的行为,比如该属性是否可写、可遍历等等。 这个内部数据结构称为“属性描述对象”(attributes object)
属性描述对象的6个元属性:
The text was updated successfully, but these errors were encountered:
Huauauaa/cheat-sheet#73 defineProperty
ae660d1
No branches or pull requests
for ...in ...可以把原型对象身上的属性遍历出来
Object.keys() 不能把原型对象身上的属性遍历出来
属性描述对象:
JavaScript 提供了一个内部数据结构,用来描述对象的属性,控制它的行为,比如该属性是否可写、可遍历等等。
这个内部数据结构称为“属性描述对象”(attributes object)
属性描述对象的6个元属性:
The text was updated successfully, but these errors were encountered: