摘要: 随机数区间公式 Math.random()*(max - min) + min 保留小数点后几位 formatFloat:function(src, pos) { return Math.round(src*Math.pow(10, pos))/Math.pow(10, pos);} 阅读全文
posted @ 2016-09-01 10:35 stupidkiddy 阅读(167) 评论(1) 推荐(1)