一个用于格式化和处理数字的javascript库----Numeral.js npm地址:https://www.npmjs.com/package/numeral 1.转化成百分比: numeral(num).format('0.00%')