摘要:
from:http://rockyee.iteye.com/blog/891538 1 Number.prototype.toFixed = function(scale){ 2 var s = this + ""; 3 if (!scale) scale = 0; 4 if (s.indexOf(".") == -1) s += "."; 5 s += new Array(scale + 1).join("0"); 6 if (new RegExp("^(-|\\+)?(\\d+(\\.\\d{0,&q 阅读全文