mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit docs/object
This commit is contained in:
+1
-1
@@ -201,7 +201,7 @@ var person = {
|
||||
name: "张三"
|
||||
};
|
||||
|
||||
var proxy = new Proxy(target, {
|
||||
var proxy = new Proxy(person, {
|
||||
get: function(target, property) {
|
||||
if (property in target) {
|
||||
return target[property];
|
||||
|
||||
Reference in New Issue
Block a user