Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month

GeoMap

How to generate a random string/id with javascript!

View previous topic View next topic Go down

How to generate a random string/id with javascript!

Post  halala on 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.
avatar
halala

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

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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