https://www.w3schools.com/jsref/jsref_tolocalestring_number.asp
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_tolocalestring_num_all
JavaScript Number toLocaleString() Method
JavaScript Number toLocaleString() Method ❮ JavaScript Number Reference Example Format the number to a string, using the locale specific of FINLAND: var num = new Number(1000000).toString("fi-FI"); Try it Yourself » Definition and Usage The toLocaleString(
www.w3schools.com
Tryit Editor v3.6
JavaScript Number toLocaleString() This method formats a number into a string, using language specific format. In this example we demonstrate all legal language codes. var n = new Number(1000000); document.write("ar-SA: " + n.toLocaleString("ar-SA") + " ")
www.w3schools.com
정말 유용한 사이트지 않습니까??
즐거운 하루되세요.
천단위, 및 기타등등
'IT > Script' 카테고리의 다른 글
xmlhttprequest_header (0) | 2020.01.29 |
---|---|
[script] radio 동일한 이름의 배열 체크하기 (0) | 2020.01.20 |
자동실행 onload & ready() (1) | 2012.09.07 |