生成uuid
2022-10-25 本文已影响0人
芸芸众生ing
export function uuid(){
return 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/x/g, () => ((Math.random() * 16 | 0) & 0x3 | 0x8).toString(16))
}
export function uuid(){
return 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/x/g, () => ((Math.random() * 16 | 0) & 0x3 | 0x8).toString(16))
}