Class StringUtil

字符串工具

Hierarchy

  • StringUtil

Constructors

Methods

  • yyyy-MM-dd hh:mm:ss S

    Parameters

    • date: Date
    • fmt: string

    Returns string

  • 获取一个唯一标识的字符串

    Returns string

  • 12345 = 1.23万

    Parameters

    • value: number
    • fixed: number = 2

    Returns string

  • 12345 = 12.35K

    Parameters

    • value: number
    • fixed: number = 2

    Returns string

  • 123456789 = 123,456,789

    Parameters

    • num: number

    Returns string

  • Parameters

    • str: string

    Returns number

  • "," 分割字符串成数组

    Parameters

    • str: string

    Returns string[]

  • "|" 分割字符串成数组

    Parameters

    • str: string

    Returns string[]

  • ":" 分割字符串成数组

    Parameters

    • str: string

    Returns string[]

  • ";" 分割字符串成数组

    Parameters

    • str: string

    Returns string[]

  • Parameters

    • str: string
    • n: number
    • showdot: boolean = false

    Returns string

Generated using TypeDoc