dallaslu on Nostr: nodejs 的 Number.toLocaleString 方法,即使指定了 locale 参数为 ...
nodejs 的 Number.toLocaleString 方法,即使指定了 locale 参数为 en-US,也不会为有小数位的数字添加千分号。真是大坑套小坑
Published at
2023-09-09 15:36:02Event JSON
{
"id": "4f83679c7a2f7b134bc8e841ebcb3387a44dce0b89cadb564947aede7201780a",
"pubkey": "aa22717fdec2e7d28cc5bcd3a712598b40a793629f5ebfb1378196c55fb37b51",
"created_at": 1694273762,
"kind": 1,
"tags": [],
"content": "nodejs 的 Number.toLocaleString 方法,即使指定了 locale 参数为 en-US,也不会为有小数位的数字添加千分号。真是大坑套小坑",
"sig": "05bddf169fbebfcc76b1c729b81aae951ed491b58d664f6bfdb88c270deefb052cfd14cd2adbc738a1b71743797282513af1c78b6666bf9c4fa7c7265029f9dc"
}