Formatting currency, if no pennies then don't show .00

后端 未结 0 1582
感情败类
感情败类 2020-12-16 18:15

Struggling find the right solution here, using the code below I get the following result:

parseFloat(value).toLocaleString(\'en-GB\')

10000  => 10,000 
51         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题