千分符

 

var f = '99999999999'.replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,')
console.log(f)

 

posted @ 2021-12-02 14:58  coffeemil  阅读(38)  评论(0编辑  收藏  举报