js正则处理千分位

"222212345.098771".replace(/d{1,3}(?=(d{3})+(.d*)?$)/g, '$&,');

原文地址:https://www.cnblogs.com/wlf-919874006/p/6439350.html