在TypeScript中为类实现Singleton模式的最佳和最方便的方法是什么?(有和没有延迟初始化).
singleton typescript
singleton ×1
typescript ×1