Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们是否在组件本身中有类似私有静态变量的东西。不像Global Constants,而是类(组件)本身私有的东西。
你需要private readonly constant = 'constant';
private readonly constant = 'constant'