📜  唯一字符串 id js - Javascript 代码示例

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

代码示例3
const uid = () => {
  return Date.now().toString(36) + Math.random().toString(36).substr(2);
};

// Usage. Example, id = khhry2hb7uip12rj2iu
const id = uid();