()
| 74 | |
| 75 | // 获取随机GUID |
| 76 | export 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 | * 函数防抖 |
no test coverage detected