Extjs4---Uncaught TypeError: Cannot call method 'apply' of undefined
来源:互联网 发布:网络语种草是什么意思 编辑:程序博客网 时间:2024/05/16 17:22
我遇到的这个错误原因是没有继承相应的类导致的,代码如下:
Ext.define('SMS.view.TabPanel',{//extend:'Ext.tab.Panel',//因为没有继承类导致的initComponent:function(){Ext.apply(this,{id:'content-panel',region:'center',defaults:{autoScoll:true,bodyPadding:10},activeTab:0,border:false,items:[ { id:'HomePage', title:'首页', layout:'fit' }]});this.callParent(arguments); }});
在谷歌浏览器中的错误如下:
我们可以看到在调用callParent方法时因为没有引入类导致的
- Extjs4---Uncaught TypeError: Cannot call method 'apply' of undefined
- Extjs4---Uncaught TypeError: Cannot call method 'substring' of undefined
- Extjs4---Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefined
- Extjs4---Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefined
- Uncaught TypeError: Cannot call method 'substring' of undefined
- Uncaught TypeError: Cannot call method 'substring' of undefined
- Uncaught TypeError: Cannot call method 'replace' of undefined 的解决
- Uncaught TypeError: Cannot call method 'substring' of undefined
- JsBridge "Uncaught TypeError: Cannot call method 'callHandler' of undefined", source
- jquery file upload报错:Uncaught TypeError: Cannot call method 'unshift' of undefined
- Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
- extjs4:Uncaught TypeError: Cannot read property 'processed' of undefined
- Extjs4.0中的Uncaught TypeError: Cannot read property 'isEvent' of undefined错误
- bug宝典之bootstrap switch Uncaught TypeError: Cannot read property 'apply' of undefined
- Uncaught TypeError: Cannot read property 'call' of undefined jquery.validate.min.js:28
- TypeError:Cannot call method 'getItem' of null
- Android WebView Error – Uncaught TypeError: Cannot call method...
- 解答为什么Extjs5中mask.show()不工作了并报错Uncaught TypeError: Cannot call property 'mask' of undefined
- Hibernate注意事项
- unresolved external symbol __imp__timeGetTime@0
- Hibernate学习之持久化对象
- 函数参数压栈,栈帧ebp,esp怎样移动的?
- C# base和this
- Extjs4---Uncaught TypeError: Cannot call method 'apply' of undefined
- SQL自学笔记(1)
- Hibernate学习之级联操作
- php 源码结构
- switch 与 if/else
- 网站分析基础概念之维度与度量
- 关于android的一个常见错误:Unable to add window --token is not valid; is your activity running?
- ④绝一首--雨过文字舞
- WEB打印系列教程之一--基于Web的打印方案比较分析