Skip to content

Commit f78b5c9

Browse files
committed
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
2 parents 8e02ba5 + c96d877 commit f78b5c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reflect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,11 @@ Object.getOwnPropertyNames(myObject)
451451
// ['foo', 'bar']
452452

453453
Object.getOwnPropertySymbols(myObject)
454-
//[Symbol.for('baz'), Symbol.for('bing')]
454+
//[Symbol(baz), Symbol(bing)]
455455

456456
// 新写法
457457
Reflect.ownKeys(myObject)
458-
// ['foo', 'bar', Symbol.for('baz'), Symbol.for('bing')]
458+
// ['foo', 'bar', Symbol(baz), Symbol(bing)]
459459
```
460460

461461
## 实例:使用 Proxy 实现观察者模式

0 commit comments

Comments
 (0)