Set decimal format in jQuery Globalize

2019-03-04 02:23发布

问题:

I would like to set decimals like #.# but it shows always like #.##

How I can do it for jQuery Globalize?

Is any clue?

回答1:

Please try this

Check this link

$.format(45678.987, "n1")