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('.',',')}
精彩评论