INR currency format

前端 未结 19 1785
栀梦
栀梦 2020-12-09 17:31

I need to show currency format like these, how can we show.

₹1
₹10
₹100
₹1,000
₹10,000
₹1,00,000
......
19条回答
  •  暖寄归人
    2020-12-09 18:00

    I know it's a bit late, but you can just use https://osrec.github.io/currencyFormatter.js/ which handles

    Then all you need is:

    // Outputs ₹ 25,34,234.00
    OSREC.CurrencyFormatter.format(2534234, { currency: 'INR' }); 
    

提交回复
热议问题