摘要: function formatFloat(src, pos) { return Math.round(src*Math.pow(10, pos))/Math.pow(10, pos); } alert(formatFloat("11111.2222", 2)); 阅读全文
posted @ 2010-01-05 11:19 yoolo wu 阅读(7027) 评论(2) 推荐(0)