📜  uuid javascript 代码示例

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

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