📜  uuid javascript - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:35.401000             🧑  作者: Mango

代码示例6
function uuid() {
  try {
      return crypto.randomUUID();
  } catch (e) {
      return String(new Date().getTime());
  }
}