日期:2014-05-16  浏览次数:20334 次

js去掉金额中的,

?? ?var? reg = new RegExp(",","g");????????????????????? //正则表达式替换字符窜中所有的,


?????
???? var? c = document.all.asset.innerText;?????????????? //成员单位资产总额字符窜


?????
???? var? cc = c.replace(reg,"");


?????
???? var? corpValue1= parseFloat(cc);