Dojo: how to remove comma from value

后端 未结 1 395
粉色の甜心
粉色の甜心 2021-01-19 09:02

I have this Dijit number spinner:

1条回答
  •  余生分开走
    2021-01-19 09:28

    The simple answer is to add pattern:'#' to your constraints object.

    The pattern property allows you to specify how you want your numeric data to be displayed. Here is a link to dojo's reference on number patterns. The whole page is pretty informative on formatting numbers.

    Your example should end up looking something like this:

    0 讨论(0)
提交回复
热议问题