Skip to content

Commit

Permalink
Update files/zh-cn/web/javascript/enumerability_and_ownership_of_prop…
Browse files Browse the repository at this point in the history
…erties/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
familyboat and github-actions[bot] authored Oct 22, 2024
1 parent ff14a4f commit d5a2b34
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ JavaScript 对象中的每个属性能根据三个因素进行分类:

仅访问字符串属性或仅访问 symbol 属性的方法有额外的注解。✅ 表示能访问这个类型的属性;❌ 表示不能访问这个类型的属性。

| | 可枚举的、自己的 | 可枚举的、继承的 | 不可枚举的、自己的 | 不可枚举的、继承的 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | --------------------- | ------------------- | ------------------------- |
| [`Object.keys`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/keys)<br />[`Object.values`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/values)<br />[`Object.entries`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) | ✅<br />(字符串) | | | |
| [`Object.getOwnPropertyNames`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames) | ✅<br />(字符串) | | ✅<br />(字符串) | |
| [`Object.getOwnPropertySymbols`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols) | ✅<br />(symbol) | | ✅<br />(symbol) | |
| [`Object.getOwnPropertyDescriptors`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors) | | | | |
| [`Reflect.ownKeys`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys) | | | | |
| [`for...in`](/zh-CN/docs/Web/JavaScript/Reference/Statements/for...in) | ✅<br />(字符串) | ✅<br />(字符串) | | |
| [`Object.assign`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)<br />(第二个参数) | | | | |
| [Object spread](/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax) | | | | |
| | 可枚举的、自己的 | 可枚举的、继承的 | 不可枚举的、自己的 | 不可枚举的、继承的 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ---------------- | ------------------ | ------------------ |
| [`Object.keys`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/keys)<br />[`Object.values`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/values)<br />[`Object.entries`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) | ✅<br />(字符串) ||||
| [`Object.getOwnPropertyNames`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames) | ✅<br />(字符串) || ✅<br />(字符串) ||
| [`Object.getOwnPropertySymbols`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols) | ✅<br />(symbol) || ✅<br />(symbol) ||
| [`Object.getOwnPropertyDescriptors`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors) |||||
| [`Reflect.ownKeys`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys) |||||
| [`for...in`](/zh-CN/docs/Web/JavaScript/Reference/Statements/for...in) | ✅<br />(字符串) | ✅<br />(字符串) |||
| [`Object.assign`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)<br />(第二个参数) | | | | |
| [Object spread](/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax) |||||

## 通过可枚举性和所有权获取对象的属性

Expand Down

0 comments on commit d5a2b34

Please sign in to comment.