luoheng
8/22/2019 - 6:26 AM

addComma

add comma to number

total.toString().replace(/\B(?=\d{3})+$/g, ',');