-1
我有一个处理程序的按钮。在此处理程序我呼吁这个功能:为什么我会在extjs中得到错误,“gridstore不是构造函数”?
onAddClick = function() {
gridStore = Ext.getStore('gridEdit');
var rec = new gridStore({
stopCode: '',
stopOrder: '',
stopId: ''
}), edit = this.editing;
edit.cancelEdit();
this.store.insert(0, rec);
edit.startEditByPosition({
row: 0,
column: 1
});
};
当我按一下按钮,它会给错误信息:“Gridstore的是不是一个构造函数”。为什么是这样?
我认为你问为什么你有错误信息“gridStore不是构造函数” – Wagtail 2012-07-09 13:14:04
是的但是当我有那个问题在那里我不允许发布它:( – 2012-07-09 13:19:14
你在哪里定义了“gridStore “class?它当然不在Ext文档中的任何地方 – 2012-07-09 13:25:41