int64(v: string): object
Parameter | Type | Description |
v | string | The string format of int64 type data. |
Type | Description |
object | The returned objects, which have the following methods: toString(), returns a string; toJSON(), called when using JSON.stringify(); |
export default function () {let a = {k: int64("9223372036854775807")}// The toJSON() method is called when using JSON.stringify().// {"k":"9223372036854775807"}console.log(JSON.stringify(a));// 9223372036854775807console.log(a.k.toString());}