根据时间戳获取uuid

public getUuid(): string {
let d = new Date().getTime();
if (window.performance && typeof window.performance.now === 'function') {
d += performance.now();
}
// tslint:disable-next-line
const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
const r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === 'x' ?

根据时间戳获取uuid最先出现在Python成神之路

版权声明:
作者:主机优惠
链接:https://www.techfm.club/p/14305.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>