tencent cloud

Tencent Cloud Observability Platform

util.uuid

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 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
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백