摘要: function thousandBitSeparator(num) { num=num.toFixed(2); return num && num .toString() .replace(/(\d)(?=(\d{3})+\.)/g, function($1,$2) { return $2 + ","; }); }console.log(thousandBit... 阅读全文
posted @ 2017-07-13 19:09 太阳花0525 阅读(240) 评论(0) 推荐(0) 编辑