摘要: function formatNumber(s) { if (!s||s==null){ return "0"; }else { return (parseInt(s)+ '').replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,'$1,'); }} 阅读全文
posted @ 2021-07-16 11:14 喜欢22度的晴天 阅读(33) 评论(0) 推荐(0)