我正面臨有關爲網格重新加載商店的問題。Ext JS加載店
var all = Ext.create('Ext.data.Store', {
model:'LiveLogModel',
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'items'
}
}
});
all.insert(0,newRecords);
這是我的商店。商店的數據是動態添加的。問題出現在我想刷新網格以更改網格中的行顏色之後。所以我需要重新加載商店。但我不能撥打all.road()。出現「無法讀取屬性」長度「未定義」的錯誤。
這裏有什麼問題?
,你能告訴我們你的JSON。 – dursun