单例模式 相关的工具

Hierarchy

  • default

Constructors

Methods

Constructors

Methods

  • 是否第一次 相同 key 只有第一次调用会返回true 后续调用都会返回false

    Parameters

    • key: any
    • printTraceBack: boolean = true

      打印函数堆栈信息

    • Optional tips: string

      提示信息

    Returns boolean

  • 如果不是第一次使用此参数

    Parameters

    • key: any
    • printTraceBack: boolean = true
    • Optional tips: string

    Returns boolean