原:1000000
转换后:1,000,000.00
toThousandsNoZero: function (num) {
return num ? ((isNaN(parseFloat(num.toString().replace(/,/g, ""))) ? 1 :
parseFloat(num.toString().replace(/,/g, ""))))
.toFixed(2).toString().replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
return $1 + ",";
}) : "";
},