`
itManKid
  • 浏览: 2190 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论

cannot read property 'items' of undefined

阅读更多

今天在自定义类时出现这样一个错误,经过反复尝试和仔细阅读api后发现,我的自定义类继承了Ext.panel.Panel,并实现了initComponent方法,问题在于我的initComponent方法中没有调用callParent()。

API文档中关于initComponent()有这样一段话:“The initComponent method must contain a call to callParent in order to ensure that the parent class' initComponent method is also called.”

在initComponent()的最后添加this.callParent()后问题解决

分享到:
评论

相关推荐

    Vue打包Cannot read property 'tapPromise' of undefined报错处理.docx

    Vue打包Cannot read property 'tapPromise' of undefined报错处理 Vue.js是一款流行的前端框架,用于构建用户界面和单页应用程序。然而,在使用Vue.js时,我们可能会遇到一些报错信息,例如Cannot read property '...

    Sawyer-zh#study-note#Vue-js路由报错TypeError-Cannot-read-property-c-

    title: 'Vue.js路由报错:TypeError: Cannot read property ''_c'' of undefined'错误详情:像上面这

    jQuery 出现Cannot read property ‘msie’ of undefined错误的解决方法

    jQuery Cannot read property ‘msie’ of undefined错误的解决方法 最近把一个项目的jQuery升级到最新版,发现有些页面报如下错误 Cannot read property ‘msie’ of undefined 上jQuery网站上搜了一下,原因是$....

    jstree报错 Cannot read property ‘state’ of undefined

    在重复渲染同一个jstree时报错Cannot read property ‘state’ of undefined 这个错在我的项目中貌似并不影响使用,但是控制台报个红色的错误终归是不好的,解决方法: 在创建jstree树之前调用 $('#jstree').jstree...

    微信小程序报错: thirdScriptError的错误问题

    Cannot read property ‘name’ of undefined TypeError: Cannot read property ‘name’ of undefined  at z (http://127.0.0.1:38175/appservice/__dev__/WAService.js:2:1560728)  at Ie ...

    电位器的标称阻值和允许偏差

    1、标称阻值为了满足使用者的要求,生产厂生产了各种阻值的电阻器。即使如此,也无法做到使用者想要什么样阻值的电阻器就会有什么样电阻器的成品。为了便于生产和使用,国家统一规定了一系列阻值作为电阻器阻值的...

    redux-devTools

    redux-devtools.crx 版本 2.15.3 大小 5.6 MB 解决 使用安装redux.devTools后 Cannot read property 'state' of undefined 问题

    Python库 | photon-1.1.6.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:photon-1.1.6.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    中文版的tomcat5.5

    Apache Tomcat 5.5是Java Servlet和JavaServer Pages(JSP)的开源Web应用程序服务器,专注于提供对Java EE Web应用程序的支持。这个版本是jaxmao进行汉化的,所以特别适合中文用户使用,解决了英文版可能存在的语言...

    驱动开发软件安装及问题总结

    实际运用总结的 。绝对有用! ddk vc6.0 driver studio 驱动安装 以及安装过程中遇到的一些问题。

    维普和万方的fitler

    在IT行业中,文献管理和引用是科研人员和学者日常工作中不可或缺的一部分。EndNote是一款非常流行的文献管理软件,它能够帮助用户整理、存储、引用和管理大量的学术文献资料。本篇文章将详细探讨如何使用EndNote的...

    Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#Object‘的解决方法

    Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'   点开错误的文件,标注错误的地方是这样的一段代码: import {normalTime} from './timeFormat'; module....

    Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#<Object>‘的解决

    主要给大家介绍了关于Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 的解决方法,文中介绍的非常详细,需要的朋友们下面来一起看看吧。

    tableExport导出

    Jquery tableExcel.js ,实现导出功能所需要的js 导出的格式可以是:JSON、XML、PNG、CSV、TXT、SQL、MS-Word、Ms-Excel、Ms-Powerpoint、PDF

    微信小程序 动态加载swiper时不显示的问题(爬坑)

    TypeError: Cannot read property '$$' of undefined at HTMLElement._attached.wx.getPlatform._touchstartHandlerForDevtools 解决方法:因为小程序会保留上一次滑动swiper时候的current,所以会出现上次滑动到的...

    局域网聊天工具,源代码

    【标题】"局域网聊天工具,源代码"所涉及的知识点主要集中在计算机网络通信、C++编程语言以及客户端-服务器架构上。这样的工具通常用于在同一局域网内的设备之间实现即时通讯,允许用户在无需互联网连接的情况下进行...

    jquery简介

    【jQuery 简介】 jQuery 是一款非常流行的 JavaScript 库,由 John Resig 创建,它以其简洁高效的设计理念——“WRITE LESS, DO MORE”而受到广泛赞誉。...它具有轻量级的特性,压缩后的库文件只有大约 21KB,同时它...

    深入浅出MyBatis技术原理与实战

    《深入浅出MyBatis技术原理与实战》这本书旨在帮助读者全面理解MyBatis这一流行的Java持久层框架,并提供实战指导。MyBatis是一个优秀的轻量级ORM(对象关系映射)框架,它解决了在Java应用程序中操作数据库时的复杂...

    我敢说在座的所有人都遇到过这些JS常见的错误【谨以此篇记录成长】

    TypeError:Uncaught TypeError: Cannot read property 'XXX' of undefined 调用了对象不存在的方法。 (2) TypeError:'undefined'is not an object 多半是使用了某个变量,拿到了一个尚未分配的变量,即undefind...

Global site tag (gtag.js) - Google Analytics