2017年10月24日

js 千分位符号 正则方法

摘要: function toThousands(num) { return (num || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');} 阅读全文

posted @ 2017-10-24 00:55 王泽平 阅读(3190) 评论(0) 推荐(0) 编辑

导航