保留两位小数
twoFloat(number){
number = Math.round(parseFloat(number)*100)/100;
var number1 = number.toString().split(".");
if(number1.length === 1){
number = number.toString()+".00";
return number;
}
if(number1.length > 1){
if(number1[1].length < 2){
number = number.toString() + "0";
}
return number;
}
}