开发者

jTemplate currency with 2 decimals

开发者 https://www.devze.com 2022-12-20 01:48 出处:网络
I need to display 开发者_如何学Ca currency within a jTemplate. {parseInt($T.product.Details[0].Price).toFixed(2)} displays as 34.50, but i should be displayed with a comma like 34,50.

I need to display 开发者_如何学Ca currency within a jTemplate.

{parseInt($T.product.Details[0].Price).toFixed(2)} displays as 34.50, but i should be displayed with a comma like 34,50.

I tried several functions to replace the point with a comma, but no luck so far. Anyone who can point me in the right direction?

Mark


{parseInt($T.product.Details[0].Price).toFixed(2).replace('.',',')}
0

精彩评论

暂无评论...
验证码 换一张
取 消