Singleton in ES6 not persisting instance

后端 未结 0 778
暖寄归人
暖寄归人 2020-12-16 15:36

This was close but it kept creating the instance over and over on every call of this module because I think the variable was in a new function constructor every time:

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