Home > front end >  How do you obtain uuid?
How do you obtain uuid?

Time:09-26

Of course there are many libraries, but I think that the following a few lines of code can use?

` ` ` javascript
Let a=0
The function getUUID () {
If (a & gt; 2 * * 31)
A=0
+
Return "+ new Date (). GetTime () + a
}
` ` `

If you don't consider distributed, the function of availability?

CodePudding user response:

Js power is math.h pow (2, 31)

CodePudding user response:

Can be, what you want to see yourself on the uuid
  • Related