Created
December 17, 2010 06:03
-
-
Save igaiga/744549 to your computer and use it in GitHub Desktop.
3桁ごとにカンマ区切り
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total_amount.toString().replace( /([0-9]+?)(?=(?:[0-9]{3})+$)/g , '$1,' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment