文書の過去の版を表示しています。
<script>let price = 123456789;console.log(number_format(price)); function number_format(num) { return num.toString().replace(/([0-9]+?)(?=(?:[0-9]{3})+$)/g, '$1,');}</script>
コメント