Function genUniqueNumString

  • EN: Generate a unique identifier number based on time: genUniqueNumString() => 1538324722364123

    ZH: 根据时间生成唯一标志的数字:genUniqueNumString() => 1538324722364123

    Usage:

    const ret1 = genUniqueNumString();
    const ret2 = genUniqueNumString(3);
    console.log(ret1);
    console.log(ret2);

    Output:

    1538324722364123
    1538324722364123
    

    Parameters

    • n: number = 3

      随机数的长度

    Returns string