Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 URL.createObjectURL(new Blob()).slice(-36) 创建UUid #92

Open
vincentzyc opened this issue May 23, 2022 · 0 comments
Open

使用 URL.createObjectURL(new Blob()).slice(-36) 创建UUid #92

vincentzyc opened this issue May 23, 2022 · 0 comments

Comments

@vincentzyc
Copy link
Owner

vincentzyc commented May 23, 2022

使用 URL.createObjectURL(new Blob()).slice(-36) 创建UUid
使用频繁的话 记得使用 window.URL.revokeObjectURL 释放内存

const objUrl = URL.createObjectURL(new Blob())
const uuid = objUrl.slice(-36)
window.URL.revokeObjectURL(objUrl)
@vincentzyc vincentzyc changed the title 使用 URL.createObjectURL(new Blob()).substr(-36) 创建UUid 使用 URL.createObjectURL(new Blob()).slice(-36) 创建UUid Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant