Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
理想情况下,我会定义一个名为 moneyfield 的新 Ext 字段类型,它扩展 Number,我可以在我的应用程序的任何地方使用它来显示带有 $ 和逗号的数字。我很惊讶 Sencha 还没有为我们提供这个。有没有人创建过这样的类?
Ext.util.Format.usMoney() 将数字格式化为美国货币 - 您可能会在字段渲染器等中使用它们。如果您想要更通用的东西,请查看 Ext.util.Format.currency()