87,902
社区成员
发帖
与我相关
我的任务
分享
store.load ( {
callback: function(records, operation, success) {
for( var i = 0; i < records.length; i++ )
console.log(records[i].StartDate);
}
} );
store.load ( {
callback: function(records, operation, success) {
alert(records);
}
} );
var taskStore = Ext.create("Gnt.data.TaskStore", {
model: 'Gnt.model.Task',
autoLoad: true,
proxy: {
type: 'ajax',
method: 'GET',
//url : '/gantt/gantt-print/tasks.js',
url: '/ganttReport/getProjectJson.jsp?key=' + mkey,
reader: {
type: 'json'
}
},
listeners: function () {
alert(taskStore.getAt(0).get('StartDate'))/////////////////////
}
});