Create GUID / UUID in JavaScript?
问题 I\'m trying to create globally-unique identifiers in JavaScript. I\'m not sure what routines are available on all browsers, how \"random\" and seeded the built-in random number generator is, etc.. The GUID / UUID should be at least 32 characters and should stay in the ASCII range to avoid trouble when passing them around. 回答1: UUIDs (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDentifier), according to RFC 4122, are identifiers with a certain uniqueness guarantee. The