tencent cloud

Tencent Cloud Observability Platform

uint64

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-03-11 19:41:08
The uint64 built-in function is used to implement uint64 types.
uint64(v: string): object

Parameters

Parameter
Type
Description
v
string
The string format of uint64 type data.

Return

Type
Description
object
The returned objects, which have the following methods:
toString(), returns a string;
toJSON(), called when using JSON.stringify();

Samples

Use uint64:
export default function () {
let a = {
k: uint64("18446744073709551615")
}
// The toJSON() method is called when using JSON.stringify().
// {"k":"18446744073709551615"}
console.log(JSON.stringify(a));
// 18446744073709551615
console.log(a.k.toString());
}


도움말 및 지원

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

피드백