Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
-
private 只能在本类中使用, 实例化后和在实例外部无法访问到 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
按照字面意思先看下这几个词:
从这几个词的含义,大致知道这几个修饰符是做啥事的。 在 TypeScript 的类中,可以用这几个修饰符来修饰其中的属性或方法。其中:
文档地址: |
Beta Was this translation helpful? Give feedback.
-
聊聊你对 TS 类中 public、private、protected、readonly 修饰符的理解?
Beta Was this translation helpful? Give feedback.
All reactions