JavaScript之如何让数字千位分割 直接使用string字符串的本来属性:toLocaleString() <script type= "text/javascript"> var num_s = "231312321312321.56 "; alert(parseFloat(num_s).toLocaleString()); </script>