如何在jQuery中每三位使用逗号分隔符格式化正数和负数?我上网冲浪,但所有的答案都是关于正数的。谢谢。
发布于 2020-07-13 11:30:08
查看Number.prototype.toLocaleString()
console.log((2000000).toLocaleString())
console.log((-2000000).toLocaleString())
https://stackoverflow.com/questions/62868824
复制相似问题