我需要在jTemplate中显示货币。
{parseInt($T.product.Details.Price).toFixed(2)}显示为34.50,但I应显示为逗号,如34,50。
我尝试了几个函数来用逗号替换point,但到目前为止都没有成功。谁能给我指个方向?
标记
发布于 2010-02-16 09:20:41
{parseInt($T.product.Details[0].Price).toFixed(2).replace('.',',')}https://stackoverflow.com/questions/2270043
复制相似问题