// 截取两位小数
function hold2bit(theNum) {
var theNum2bit = String(theNum);
}else if(String(theNum).match(/\d{0,}\.\d/)){
theNum2bit += '0';
}else if(String(theNum).match(/\d{0,}\./)){
theNum2bit += '00';
}else if(String(theNum).match(/\d{0,}/)){
theNum2bit += '.00';
}
return theNum2bit;
}
function hold2bit(theNum) {
var theNum2bit = String(theNum);
if(String(theNum).match(/\d{0,}\.\d\d/)){
theNum2bit = String(theNum).match(/\d{0,}\.\d\d/)[0];}else if(String(theNum).match(/\d{0,}\.\d/)){
theNum2bit += '0';
}else if(String(theNum).match(/\d{0,}\./)){
theNum2bit += '00';
}else if(String(theNum).match(/\d{0,}/)){
theNum2bit += '.00';
}
return theNum2bit;
}