当前位置: 代码迷 >> JavaScript >> js var event = getEvent(event)
  详细解决方案

js var event = getEvent(event)

热度:421   发布时间:2012-09-20 09:36:50.0
js var event = getEvent(event);
{
fieldLabel : "生产厂家",
id : "yieldPackage",
labelWidth : 70,
width : 130,
xtype : "combo",
baseCls : "x-plain",
mode : "local",
displayField : "factory_name",
hideTrigger : true,
triggerAction : "all",
style : "margin-left:15px;",
// emptyText:"请选择厂家",
store : yieldPackageStore,
listeners : {
'focus' : function(_c, _r, _i) {
if (yieldPackageFlag == 0) {
yieldPackageFlag++;
}
},
'keyup' : function(_c) {
var event = getEvent(event);
alert(event.keyCode);
if (event.keyCode == 38
|| event.keyCode == 40) {
return;
}
var factory_name = _c.getValue();
if (factory_name.length >= 2)
yieldPackageStore.load({
params : {
start : 0,
limit : 10,
factory_name : factory_name
}
});
}
}
}]
}
  相关解决方案