tencent cloud

util.uuid
Last updated: 2025-03-11 20:21:27
util.uuid
Last updated: 2025-03-11 20:21:27
During the script execution, util.uuid is used to generate a uuid, utilizing version 4 of the UUID specification.
uuid(): string

Return

Type
Description
string
uuid string.

Samples

Call util.uuid:
import util from 'pts/util';

export default function () {
console.log(util.uuid()) // 5fbf1e59-cabf-469b-9d9f-6622e97de1ec
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback