docs: 变量名改为习惯用法

xxx这种名称偏向于口语化,适用于不严格的使用环境。 开发常用的约定俗称的随机名是 foo, bar, baz 等等
This commit is contained in:
waiting
2017-10-29 16:40:55 +08:00
parent 22b0f1d472
commit ea98bdafa5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ let proto = new Proxy({}, {
});
let obj = Object.create(proto);
obj.xxx // "GET xxx"
obj.foo // "GET foo"
```
上面代码中,拦截操作定义在`Prototype`对象上面,所以如果读取`obj`对象继承的属性时,拦截会生效。