Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
程序员文章站
2022-10-31 14:15:20
在做
The MVC Application Architecture 时遇到了一个错误:
"Uncaught TypeError: Cannot read prop...
在做
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'}
]
}
);
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'}
]
}
);
推荐阅读
-
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object
-
微信小程序报Cannot read property 'setData' of undefined的错误
-
webpack报错Cannot read property 'presetToOptions' of undefined
-
Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
-
JavaScript Uncaught TypeError: Cannot read property 'value' of null
-
Cannot read property 'tap' of undefined
-
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#
-
el-tooltip组件中content使用Vue-i18n报错TypeError: Cannot read property ‘$t‘ of null
-
vuejs路由使用的问题Error in render function: "TypeError: Cannot read property 'matched' of undefined"
-
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object