摘要: 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 阅读全文
posted @ 2011-06-09 16:55 Unintended 阅读(364) 评论(0) 推荐(0) 编辑