var grid = Ext.create('Ext.grid.Panel', {
        store: store,
        columns: [
        {
            header: '序号',
            dataIndex: 'xuhao',
            sortable : false,
            width: 100
        }
        , 
        {
            header: '名称',
            dataIndex: 'Name',
            sortable : false,
            width: 100
        }
        , 
        {
           header: '结果',
           columns:[
           {
               header: '本月',
               dataIndex: 'curMonth',
               sortable : false,
               width: 150
           }
           ,
           {
               header: '本年',
               dataIndex: 'curYear',
               sortable : false,
               width: 150
           }]
        }
        , 
        {
           header: '备注',
           dataIndex: 'note',
           sortable : false,
           width: 150
        }
        ]
    });
我看有个帖子说
var column=grid.columns;
var items=column.items.items;
Ext.each(items,function(item){
alert(item.text);
但是我试了下var items=column.items.items;firefox说了column.items.item不是方法?
var column=grid.columns;
如果返回的是return Ext.grid.column.Column[]
为什么我用column.getColumnsCount说不是方法?
});