EN: Generate a unique identifier number based on time: genUniqueNumString() => 1538324722364123
genUniqueNumString()
1538324722364123
ZH: 根据时间生成唯一标志的数字:genUniqueNumString() => 1538324722364123。
Usage:
const ret1 = genUniqueNumString();const ret2 = genUniqueNumString(3);console.log(ret1);console.log(ret2); Copy
const ret1 = genUniqueNumString();const ret2 = genUniqueNumString(3);console.log(ret1);console.log(ret2);
Output:
1538324722364123 1538324722364123 Copy
1538324722364123 1538324722364123
随机数的长度
EN: Generate a unique identifier number based on time:
genUniqueNumString()
=>1538324722364123
ZH: 根据时间生成唯一标志的数字:
genUniqueNumString()
=>1538324722364123
。Usage:
Output: