export function delcommafy(num) { if (num != undefined) { num = num.toString(); num = num.replace(/[ ]/g, ""); //去除空格 num = num.replace(/,/gi, ''); return Number(num); } }