我正在使用 ExtJs 4.2.1。store的records
load 事件参数如图所示null
。
st = Ext.getStore('MyJsonStore');
st.on('load', function(store, records, successful, eOpts) {
//Block of codes
var access = records[0].data.access;
//Block of codes
});
st.load();
错误消息在控制台中抛出为:-
TypeError: Cannot read property '0' of null
谁能帮我这个?