Function cutCHSString

  • Intercept string, Chinese counts as 2 bytes

    Parameters

    • str: string

      the string to be intercepted

    • len: number = str.length
    • hasDot: boolean = false

    Returns string

    • the intercepted string

    1.0.1