Function trim

  • @description: 去除字符串空格, 默认去除前后空格 (常用) @author: wuxh @Date: 2020-05-06 13:43:52

    Parameters

    • str: string
    • global: boolean = false

    Returns string