例如:
表示行:
cols cols:
print cell[row,col]
答案 0 :(得分:1)
假设您的网格(或一般情况下)有Ext.data.Store
,您可以按如下方式进行整理:
var store = grid.getStore();
var records = store.getRange();
for(var i = 0; i < records.length; i++) {
for(var index in records[i]) {
if (records[i].hasOwnIndex(index)) {
//not sure how you want to print this, so for now, print to console
console.log(records[i][index])
}
}
}
...但是,如果您有Ext.grid.GridPanel
,我不确定您为什么要手动执行此操作...