Creating Unique Identifier in JavaScript
Possible Duplicate:
How to create a GUID / UUID in Javascript?
I have a need to create a unique identifier in JavaScript. I don't care what it is as long as it is unique across all computers in the world. I thought of somehow concatenating the unique ID (mac address?) of a PC with a date/time stamp but don't know how to do this. Can anyone help?
Thanks
You're not going to be able to get a mac address from a browser (javascript) and it's tricky - (but not impossible) on the server. It's also not guaranteed to be unique in the world - I've heard of large organizations who had collisions inside their corporate networks.
链接地址: http://www.djcxy.com/p/16240.html下一篇: 在JavaScript中创建唯一标识符