随机生成32位uid
//随机32位uid
function uuidGenerator() {
var originStr = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
originChar = '0123456789abcdef',
len = originChar.length;
return originStr.replace(/x/g, function(match) {
return originChar.charA
原创
2021-03-30 15:53:04 ·
869 阅读 ·
0 评论