加入监听linstener,监听输入的是否的数字
{
xtype : 'textfield',
id: 'firstRegStorage',
labelSeparator:'',
labelAlign : 'right',
fieldLabel : "<span>数量:</span>",
labelWidth : 120,
width:250,
listeners:{'blur':function(){
var firstRegStorage = getVal('firstRegStorage');
if(firstRegStorage != null){
if(regPos.test(firstRegStorage) || regNeg.test(firstRegStorage)){
return true;
}else{
if(escape(firstRegStorage).indexOf("%u")!=-1 || firstRegStorage.match(/\D/)!=null){
myMsgBox('提示','请输入数字!');
setVal('','firstRegStorage');
return;
}
}
}
}}
}