Ext.application 在 Ext 5 中未定义
Ext.application is undefined in Ext 5
我有一个 Ext 应用程序,它在 Ext 4 中运行良好,但在 ext 5 中出现错误。我加载ext-all.js
很好。
Ext.application({ // undefined method here
});
我还需要加载什么?
如果您提供更多代码,以便我们可以看到您的错误所在,那将是可取的。但是回答你的问题,你至少需要:
Ext.application({
name : 'MyApp', // Your app name here
launch : function() {
// Your code here
Ext.Msg.alert('Test', 'Hello World!');
}
});
如果此代码不起作用,则可能尚未导入所需的所有文件。
相关文章:
- 为什么“;未定义的“;在JavaScript中结束循环
- 要求未定义JS回调参数
- 如何检查管道中未定义的项目
- TypeError:无法读取属性'推'未定义的JavaScript
- $window.ga在AngularJS事件中未定义
- 未捕获的TypeError无法读取未定义的属性socialsharing
- 为什么grunt contrib connect的中间件选项的第三个参数是未定义的
- 无法获取属性'selectedIndex'的未定义引用或null引用
- 如何消除代码中的未定义和其他问题
- 未捕获的ReferenceError:$未定义
- this.router在AngularJS 2中未定义
- 未捕获的类型错误:无法读取属性'删除'的未定义
- Ext.application 在 Ext 5 中未定义
- Ext.util.JSON.encode可能返回未定义的值
- Ext.JS 4.2.1使用Jasmine进行单元测试-未定义应用程序
- EXT.NET:“;未捕获的类型错误:无法读取属性'数据'未定义的“;将记录添加到存储时
- ExtJS Ext.panel.body未定义.为什么
- Ext JS:将geoExt迁移到4..ext .tree. treeppanel . nodetypes未定义
- Chrome控制台TypeError: Ext.getStore()未定义
- EXT JS 3-单击columnGrid标题时this.focusEl出现未定义错误