extjs组合框中的验证程序函数IE6不工作
我用这段代码来验证IE6中的组合框,这不起作用 在Firefox和Chrome中,它可以正常工作。请建议我一些方法来验证IE6中的组合框 代码: 谢谢 拉吉extjs组合框中的验证程序函数IE6不工作,extjs,extjs3,extjs-mvc,Extjs,Extjs3,Extjs Mvc,我用这段代码来验证IE6中的组合框,这不起作用 在Firefox和Chrome中,它可以正常工作。请建议我一些方法来验证IE6中的组合框 代码: 谢谢 拉吉 这工作正常。是否调用验证程序?如果您在函数中放置一些跟踪,您应该能够看到它是否被调用。还有-控制台中是否有JS错误? xtype: 'combo', fieldLabel: 'Label', anchor: '100%', allowBlank: false,
这工作正常。是否调用验证程序?如果您在函数中放置一些跟踪,您应该能够看到它是否被调用。还有-控制台中是否有JS错误?
xtype: 'combo',
fieldLabel: 'Label',
anchor: '100%',
allowBlank: false,
displayField: 'value',
store: 'level1Store',
lazyInit: false,
mode: 'local',
forceSelection: true,
disableKeyFilter: true,
editable: true,
selectOnFocus: true,
triggerAction: 'all',
valueField: 'key',
name: 1,
ref: 'combo1',
id: 'field1',
validator: function(value){
var temp = 0;
for(var i=0;i<value.length;i++){
if(value[i]=="?"){
temp = temp + 1;
}
}
if(temp >3){
return false;
}else{
return true;
}
}
}
validator: function(value){
var arr = value.split("?");
if(arr.length >4) {
return false;
}else {
return true;
}
}