js数字部分三位添加逗号

parseFloat(number).toLocaleString()
// ie下不兼容
原文地址:https://www.cnblogs.com/limengyao/p/10318904.html