let amount = '1,000,000元'; let regx = /[\u4E00-\u9FA5]|,/g; //去掉非数字字符 let number = amount .replace(regx, ""); //1000000