MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / getGuid

Function getGuid

src/utils/utils.js:76–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75// 获取随机GUID
76export function getGuid () {
77 const S4 = function () {
78 return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
79 };
80 return `${S4() + S4()}-${S4()}-${S4()}-${S4()}-${S4()}${S4()}${S4()}`;
81}
82
83/**
84 * 函数防抖

Callers 3

openMenuFunction · 0.90
ImageViewFunction · 0.90
getNodePropertyFunction · 0.90

Calls 1

S4Function · 0.85

Tested by

no test coverage detected