当前位置:编程学习 > 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 © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,