Function uuid

  • @description: 生成随机字符串,第一个参数指定位数,第二个字符串指定字符,都是可选参数,如果都不传,默认生成8位 @author: wuxh @Date: 2021-09-02 22:29:02

    Parameters

    • length: number
    • chars: string | any[]

    Returns string

    @example: uuid() => 'ghijklmn'