Ext.form.NumberField自带配置项里面有 allowBlank: false, allowDecimals: true, // 允许小数点 allowNegative: true, // 允许负数 allowNegative :true, 其中allowNegative默认为true,即默认允许为负数 你既然不要输入负数,设置allowDecimals:false就可以了。