Skip to content

Commit 9b1e0bd

Browse files
authored
Merge pull request lydiahallie#566 from Swordword/patch-3
Update README-zh_CN.md
2 parents d70e86c + 1bfc7fa commit 9b1e0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zh-CN/README-zh_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4388,7 +4388,7 @@ person.name;
43884388

43894389
#### 答案: C
43904390

4391-
使用 Proxy 对象,我们可以给一个对象添加自定义行为。在这个 case,我们传递一个包含以下属性的对象 `handler` : `set` and `get`每当我门 _设置_ 属性值时 `set` 被调用,每当我们 _获取_ 时 `get` 被调用。
4391+
使用 Proxy 对象,我们可以给一个对象添加自定义行为。在这个 case,我们传递一个包含以下属性的对象 `handler` : `set` and `get`每当我们 _设置_ 属性值时 `set` 被调用,每当我们 _获取_ 时 `get` 被调用。
43924392

43934393
第一个参数是一个空对象 `{}`,作为 `person` 的值。对于这个对象,自定义行为被定义在对象 `handler`。如果我们向对象 `person` 添加属性,`set` 将被调用。如果我们获取 `person` 的属性, `get` 将被调用。
43944394

0 commit comments

Comments
 (0)