JS Declare Class & Instantiate For Singleton

后端 未结 0 940
灰色年华
灰色年华 2020-12-11 02:25

I just realized you can declare and construct a new instance of a class using new. This feels really elegant for singleton usage. Is this valid? If so are there

相关标签:
回答
  • 消灭零回复
提交回复
热议问题