F~u~c~k i~t!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month
No user

GeoMap

How to generate a random string/id with javascript!

Go down

How to generate a random string/id with javascript! Empty How to generate a random string/id with javascript!

Post  halala Tue Nov 04, 2014 10:37 am

It is quite simple:
Code:
Math.random().toString(36).substr(2); 
And the param of toString controls the alphabet used by the outcoming string.
halala
halala

帖子数 : 99
金币(Coin) : 4515
注册日期 : 2012-08-17

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum