1、保留两位小数不四舍五入 var test = 3.678 console.log(( parseInt( test * 100 ) / 100 ).toFixed(2))//打印3.67 parseFloat