项目地址:https://github.com/adamwdraper/Numeral-js Use it In the Browser <script src="numeral.min.js"></script> 或者使用CDN文件 <script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script> In Node.js npm install numeral var numeral = require('numeral'); 创建 创建数字的实例。数字采用它转换为数字的数字或字符串。 var myNumeral = numeral(1000); var value = myNumeral.value(); // 1000 var myNumeral2 = numeral('1,000'); var value2 =… Read More