js 保留小数后1位或2位
function changeTwoDecimal(x){ var f_x = parseFloat(x); if (isNaN(f_x)) { return false; } var f_x = Math.round(x*10)/10; return f_x;}
?