自己写的js给数字豆号分节,来提高自己 <html><body><table border="1" cellspacing="5" id="sp"><tr><td>12345436267.89</td><td>3402.89</td><td>3402</td></tr></table><script>function formatNumber(num){ if(!/^(\+|-)?(\d+)(\.\d+)?$/.test(num)){return num;} var a = RegExp.$1, b = RegExp.$2, c = RegExp.$3; var re = new RegExp().compile("(\\d)(\\d{3})(,|$)"); while(r...未完,继续阅读→