摘要:
<HTML><BODY><script language=javascript>function commafy(num){ num = num+""; var re=/(-?\d+)(\d{3})/ while(re.test(num)) { num=num.replace(re,"$1,$2") } return num;}function commafyback(num){ var x = num.split(','); return parseFloat(x.join("") 阅读全文