30 07 2015

js  保留小数点后几位方法

$sum=9.45;

sum.toFixed(1);   保留一位//9.5


发表评论