我希望number字段在点后取8位数,而不是只取4位并舍入最后一位数:我尝试使用decimalPercision:8,它也是这样做的,并添加零,
{
name: "latitude",
fieldLabel: "<spring:message code='input.latitude' text='Latitude' />",
xtype: "numberfield",
decimalPercision:8,
value:0
},发布于 2014-03-11 15:48:10
你可以使用javascript的toFixed()函数。与value.toFixed(8)一样,toFixed将数字转换为字符串并保留指定的小数位数
https://stackoverflow.com/questions/22319187
复制相似问题