function   formatNumWithDot (val) {
                var a = (val+"").indexOf(".")
                if (a > -1) {
                    var b = (val + "").split(".")
                    return (b[0] || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') + "." + b[1];
                } else {
                    return (val || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
                }
            },

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-01-12
  • 2021-06-08
  • 2021-12-12
相关资源
相似解决方案