mo49
6/24/2019 - 6:15 AM

addFigure.js

// 3桁でカンマを挿入
function addFigure(num) {
  num = num + ""
  return num.replace(/(\d)(?=(\d\d\d)+$)/g, "$1,")
}