After instantiating alarm, why can’t it access its private private functions findCache and addCache through .: alarm is shown in the figure
Instantiation and calling:
typecho2017-06-26 10:59:48
Didn’t you already say that this is a private function? How to access the private function? The official document is as follows:
When a member is marked private, it cannot be accessed from outside of its containing class.
https://www.typescriptlang.or...