G. Petit Boi的不定积分表 Tables of Indefinite Integrals by G. Petit Boi
s,lITHSONIAN MISCELLANEOUS COLLECTIONS
VOLUME 74. NUMBER 1
SMITHSONIAN MATHEMATICAL FORMULAE
AND
TABLES OF ELLIPTIC FUNCTIONS
MATHIELMATICAL FORMULAE PREPARED BY
EDWIN P. ADAMS, PH D
本文实例讲述了JS基于正则实现数字千分位用逗号分隔的方法。分享给大家供大家参考,具体如下:
js千分位逗号隔开
[removed]
var a = 222122122.6754;
var b = a.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,');//使用正则替换