Commit e47238f8 authored by xishifeng's avatar xishifeng

public小数保留两位2

parent 29a4c878
......@@ -139,7 +139,7 @@ function is_mobile(text) {
//处理金额的数字,最多三位小数
function dealJineNum(num){
if(isFinite(num)){
if(parseInt(num)==num || num.toString().split(".")[1].length < 4){
if(parseInt(num)==num || num.toString().split(".")[1].length < 3){
return num;
}else{
return Number((num).toFixed(2));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment