mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs: 变量名改为习惯用法
xxx这种名称偏向于口语化,适用于不严格的使用环境。 开发常用的约定俗称的随机名是 foo, bar, baz 等等
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ let proto = new Proxy({}, {
|
||||
});
|
||||
|
||||
let obj = Object.create(proto);
|
||||
obj.xxx // "GET xxx"
|
||||
obj.foo // "GET foo"
|
||||
```
|
||||
|
||||
上面代码中,拦截操作定义在`Prototype`对象上面,所以如果读取`obj`对象继承的属性时,拦截会生效。
|
||||
|
||||
Reference in New Issue
Block a user