Internationalization(Number formatting “num.toLocaleString()”) not working for chrome

前端 未结 4 809
自闭症患者
自闭症患者 2020-12-07 03:12

i want do number formatting in Javascript.. and i use the following method num.toLocaleString() which will work for Firefox, IE but doesnt work for Google Chrome.. Wat i nee

4条回答
  •  悲哀的现实
    2020-12-07 03:54

    The JavaScript internationalization support is quite poor (as you have discovered). You might take a look at https://github.com/jquery/globalize It handles number formatting, and also dates, times, currencies.

提交回复
热议问题