2023-06-02TypeScript几秒 读完 (大约 36 个字)生成UUIDts生成UUID ts123456const getUUID = (): string => { const TEMP_URL = URL.createObjectURL(new Blob()) const UUID = TEMP_URL.toString() URL.revokeObjectURL(TEMP_URL) //释放这个url return UUID.substring(UUID.lastIndexOf('/') + 1)}