美文网首页
生成uuid

生成uuid

作者: 芸芸众生ing | 来源:发表于2022-10-25 15:17 被阅读0次
export function uuid(){
  return 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/x/g, () => ((Math.random() * 16 | 0) & 0x3 | 0x8).toString(16))
}

相关文章

网友评论

      本文标题:生成uuid

      本文链接:https://www.haomeiwen.com/subject/zfgazrtx.html