var reg=/(?=\B(?:\d{3})+\b)(\d{3}(\.\d+$)?)/g;
//如何解释这个正则
'2343453544334000.766578'.replace(reg,',$1')
呼唤远方
相关分类