Number(1234567).toLocaleString(); //结果"1,234,567" Number(123456789).toLocaleString()//结果"123,456,789"
Number(123456789.25).toLocaleString()
//结果"123,456,789.25"
网上还有几种解决方案,先记下,后面测试下性能
http://www.jb51.net/article/61585.htm