replaceAll

steyu·2022년 10월 9일
0

The replaceAll method is not supported in Internet Explorer. If you need to support the browser, use the replace method with the g flag instead.

천단위 , 빼기

const a = '1,000,000'
a.replace(/,/g, ''); // g for replace ALL
console.log(a) // '1000000'

천단위 , 넣기

0개의 댓글