javascript numberformat , number_format

2
정식으로  지원되는게 있다.
언어셋 지원도 된다.
new Intl.NumberFormat().format(x)



var number = 3500;

console.log(new Intl.NumberFormat().format(number));
// → '3,500' if in US English locale

console.log(number.toLocaleString());


var number = 3500;

console.log(number.toLocaleString()); // Displays "3,500" if in U.S. English locale
------------=--------------
php의 number_format 과 비슷

댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
제목 작성자 날짜
공대여자
공대여자
mins01
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자