mirror of
https://github.com/wangdoc/typescript-tutorial.git
synced 2025-12-20 00:50:17 +08:00
docs(decorator): fixed #93
This commit is contained in:
@@ -691,7 +691,7 @@ class C {
|
||||
}
|
||||
```
|
||||
|
||||
上面示例中,`accessor`修饰符等同于为属性`x`自动生成取值器和存值器,它们作用于私有属性`x`。也就是说,上面的代码等同于下面的代码。
|
||||
上面示例中,`accessor`修饰符等同于为公开属性`x`自动生成取值器和存值器,它们作用于私有属性`x`。(注意,公开的`x`与私有的`x`不是同一个属性。)也就是说,上面的代码等同于下面的代码。
|
||||
|
||||
```typescript
|
||||
class C {
|
||||
|
||||
Reference in New Issue
Block a user