千分位正则

'9999999999999.12'.replace(/d{1,3}(?=(d{3})+(?:.d{1,2})?$)/g, '$1,')

原文地址:https://www.cnblogs.com/little-ab/p/9856159.html