java - Is there any uniqe id provided by WorkLight? -
i want construct request web service worklight server unique id each request.
so, question. there provided class(java) or function(js) worklight or have implement myself.
many :)
you can generate unique id using javascript, see answer. relevant bit:
function generateuidnotmorethan1million() { return ("0000" + (math.random()*math.pow(36,4) << 0).tostring(36)).substr(-4) } there's more info. inside original answer, should able modify fit needs if 4 chars small. sample usage:
generateuidnotmorethan1million() "z38b" generateuidnotmorethan1million() "4szu"
Comments
Post a Comment