Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

세자리 콤마 return 시 formatter 관련하여 질문 #2008

Open
xorddosfuck opened this issue Jan 6, 2024 · 2 comments
Open

세자리 콤마 return 시 formatter 관련하여 질문 #2008

xorddosfuck opened this issue Jan 6, 2024 · 2 comments
Labels

Comments

@xorddosfuck
Copy link

xorddosfuck commented Jan 6, 2024

price1-1

price3

int형인 price 벨류값이
formatter 사용시 JSON 이 파싱되지않고 object로 출력됩니다. 도움바랍니다.

@xorddosfuck
Copy link
Author

solution

evvol
evvol2

@YounghoonYoo
Copy link

YounghoonYoo commented Jan 7, 2024

e를 찍어서 그렇습니다.
https://seokbong.tistory.com/m/14

`javascript
formatter : function(e) {
const price = e.valur; let result = price.toLocaleString(); console.log(result); result = price.toLocaleString('en-US'); console.log(result); result = price.toLocaleString('ko-KR'); console.log(result); result = price.toLocaleString('ar-EG'); console.log(result);
중에 국가에 맞게 처리가 좋아보입니다.
return 값

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants