当前位置:编程学习 > JS >>

Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined

在做
The MVC Application Architecture 时遇到了一个错误:
"Uncaught TypeError: Cannot read property ‘items’ of undefined"
找了很久才发现是因为没有在List.js中配置colums
 需要添加colums的代码:
[javascript] 
Ext.define( 
    'AM.view.user.List', 
    { 
        extend:'Ext.grid.Panel', 
        alias:'widget.userlist', 
        title:'All Users', 
        store:'Users', 
        columns:[ 
                 {header:'Name',dataIndex:'name'}, 
                 {header:'Email',dataIndex:'email'} 
        ] 
    } 
); 
补充:web前端 , JavaScript ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,