Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 jTemplate 中显示一种货币。
{parseInt($T.product.Details[0].Price).toFixed(2)} 显示为 34.50,但 i 应显示为 34,50 之类的逗号。
我尝试了几个函数来用逗号替换点,但到目前为止没有运气。谁能指出我正确的方向?
标记
{parseInt($T.product.Details[0].Price).toFixed(2).replace('.',',')}