我有一個問題觸發「負荷」和EXT4對商店的beforeload「事件:ExtJS的4不能觸發店內活動負載和beforeload
Ext.define('Emvr.store.saveFormData', {
extend: 'Ext.data.Store',
model: 'Emvr.model.saveFormData',
constructor: function(config) {
config = config || {};
this.callParent([config]);
}
});
var store_myVisitsGrid_instance = new Emvr.store.saveFormData();
store_myVisitsGrid_instance.on(load, function() {
alert('ok load');
})
它不會進入功能時,我加載數據使用
store_myVisitsGrid_instance.loadData(responseFromServer)
你是否看到任何錯誤?你可以發佈他們嗎? – laurac
我沒有錯誤。 – lucian
我可以在firebug中看到我爲load事件定義了一個監聽器,但是函數內部的動作沒有被觸發 – lucian