【发布时间】:2023-03-03 01:15:01
【问题描述】:
Javascript 中有没有用于格式化数字和字符串的函数?
我正在寻找一种用于字符串或数字的千位分隔符的方法... (类似于 c# 中的 String.Format)
【问题讨论】:
-
我想你会在那里找到你需要的东西:) stackoverflow.com/questions/610406/…
-
How to print a number with commas as thousands separators in JavaScript: stackoverflow.com/questions/2901102/…
标签: javascript string numbers format