1
0
mirror of synced 2026-02-11 15:37:56 +08:00

auto commit

This commit is contained in:
yitter
2021-08-31 11:52:53 +08:00
parent 2308932d25
commit c669af4cbe
8 changed files with 37 additions and 37 deletions

20
JavaScript/test/test2.js Normal file
View File

@@ -0,0 +1,20 @@
const GenId = require('..')
function test1() {
const genid = new GenId({ WorkerId: 1 })
for (let index = 0; index < 5000; index++) {
console.log(genid.NextId());
}
}
function test2() {
const genid = new GenId({ WorkerId: 1 })
const id = genid.NextId()
console.log(typeof (id))
console.log(id, id.toString().length)
}
function main() {
test2()
}
main()