Skip to content
New issue

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

查看对象属性方法 #12

Open
upgrace opened this issue Apr 28, 2020 · 0 comments
Open

查看对象属性方法 #12

upgrace opened this issue Apr 28, 2020 · 0 comments

Comments

@upgrace
Copy link
Owner

upgrace commented Apr 28, 2020

 in: 返回无论是实例自身及原型上的属性, 不包括symbol属性
  hasOwnproperty: 返回实例自身的属性,不包括symbol属性
  Object.keys: 返回实例自身可访问的属性,不包括symbol属性
  Object.getOwnProtertyName: 返回实例的所有属性,无论是否可访问
  JSON.stringify: 串化对象自身的可枚举的属性
  Object.assign: 复制对象自身的可枚举的属性
  Object.getOwnPropertySymbols: 对象自身的所有可枚举的symbol属性
  Reflect.ownKeys: 对象自身的所有属性,不管是否是symbol 也不管是否可枚举
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant