开发者

jTemplate currency with 2 decimals

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜