• 替换字符串

    Parameters

    • str: string

      需要替换的字符串

    • findText: string

      被替换的内容

    • repText: string

      替换的内容

    Returns string

    Example

    replace('abcdefg', 'a', 'b')
    

Generated using TypeDoc