摘要: 1. js实现小数转百分比 Number.prototype.toPercent = function(n) { n = n || 0; return (Math.round(this*Math.pow(10, n + 2)) / Math.pow(10, n)).toFixed(n) + '%'; 阅读全文
posted @ 2016-05-23 21:23 herowalking 阅读(174) 评论(0) 推荐(0) 编辑