There are way too many questions and answers about this basic functionality, I cannot see the wood for the trees.
(关于这个基本功能有太多的问题和答案,我看不到树木的木材。)
In Java there is only one simple answer ( java.text.NumberFormat
and its subclasses) so I'm sure the majority of plugins, questions and answers will mature eventually to a de-facto standard for JQuery.
(在Java中只有一个简单的答案( java.text.NumberFormat
及其子类),所以我确信大多数插件,问题和答案最终都会成熟为JQuery的事实标准。)
This plugin is the best I found so far, but I don't know if it's still developed, is mature etc.
(这个插件是我迄今为止发现的最好的插件 ,但我不知道它是否仍在开发中,是否成熟等。)
http://plugins.jquery.com/project/numberformatter
(http://plugins.jquery.com/project/numberformatter)
Is there a better solution?
(有更好的解决方案吗?)
Is it mature / active enough to rely on?(它是否足够成熟/活跃?)
Edit:
(编辑:)
I would like to be able to format currencies, decimal, integers based on the same format patterns Java uses, so that data recieved on the client side can be formatted without sending it first to the server.
(我希望能够基于Java使用的相同格式模式格式化货币,十进制,整数,以便可以格式化客户端收到的数据,而无需先将其发送到服务器。)
eg
(例如)
Format 1000
to $1,000
or 1,000.00
etc (locale support is nice)
(格式1000
到$1,000
或1,000.00
等(区域设置支持很好))
Seems that http://plugins.jquery.com/project/numberformatter does the job but the question was: "Am I using the right thing?"
(似乎http://plugins.jquery.com/project/numberformatter完成了这项工作,但问题是:“我使用的是正确的吗?”)
or "Is there a better way to do so?"(或者“有更好的方法吗?”)
ask by Eran Medan translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…