Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
const 静态常量. 定义的时候可以创建一个常量, |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
先看看两者作用:
实质上,我们定义属性时通过 详细分析可以看看:Difference between const and readonly in typescript |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TypeScript 中 const 和 readonly 的区别?
Beta Was this translation helpful? Give feedback.
All reactions