【问题标题】:Set decimal format in jQuery Globalize在 jQuery Globalize 中设置十进制格式
【发布时间】:2014-11-18 14:00:10
【问题描述】:

我想设置像#.# 这样的小数,但它总是显示像#.##

我如何为 jQuery Globalize 做到这一点?

有什么线索吗?

【问题讨论】:

    标签: javascript jquery decimalformat


    【解决方案1】:

    请试试这个

    Check this link

    $.format(45678.987, "n1")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多