To generate random ids in JS use the following code:
The length of the item can be increased/decreased by changing the value in functions toString(36) and substr(2, 9).
Math.random().toString(36).substr(2, 9)
The length of the item can be increased/decreased by changing the value in functions toString(36) and substr(2, 9).
No comments:
Post a Comment