当前位置 : 主页 > 网络编程 > JavaScript >

价钱的格式化.txt

来源:互联网 收集:自由互联 发布时间:2021-06-30
价钱的格式化.txt $.views.converters({ numeral2: function (v, formatType) { if (v == "" || v == undefined) { return "0"; } else { if (formatType == null) { formatType = "0,0.00" } return numeral(v).format(formatType); } } });
价钱的格式化.txt
$.views.converters({
        numeral2: function (v, formatType) {
            if (v == "" || v == undefined) {
                return "0";
            } else {
                if (formatType == null) {
                    formatType = "0,0.00"
                }
                return numeral(v).format(formatType);
            }
        }
    });
网友评论