不知道这样操作符不符合你的要求
var str='4854,485.00'; str=str.replace(/,/g,''); var num=Number(str); console.log(num);
始终不行。。。,想了老半天了→_→
什么样子的千分位字符串,举个栗子呗