qfw
This commit is contained in:
@@ -81,11 +81,13 @@ const formatMoney = function (s: string) {
|
||||
t += l[i] + ""; //加上空格
|
||||
}
|
||||
}
|
||||
let z:any = (noNegative ? "" : "-") + t.split("").reverse().join("")
|
||||
z = isNaN(z) ? 0 : z
|
||||
if(r){
|
||||
return (noNegative ? "" : "-") + t.split("").reverse().join("") + "." + r;
|
||||
return z+ "." + r;
|
||||
|
||||
}else{
|
||||
return (noNegative ? "" : "-") + t.split("").reverse().join("")
|
||||
return z
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user