📜  uid js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:02.585000             🧑  作者: Mango

代码示例1
var ID = function () {
  // Math.random should be unique because of its seeding algorithm.
  // Convert it to base 36 (numbers + letters), and grab the first 9 characters
  // after the decimal.
  return '_' + Math.random().toString(36).substr(2, 9);
};