从 ExtJs3 升级到 ExtJs4 时出错 - “成员未定义”在兼容模式下?
我正在将我的项目从 Ext3.3 更新到 Ext4。
添加新的 ext4 ext-all-debug.js
之后,我添加了 ext3-core-compat.js
和 ext3-compat.js
文件> 文件。
我在 ext-all-debug.js 的第 3262 行收到 members is udefine 错误
。
它位于 Ext.extend 方法内,该方法接受 3 个参数:
Ext.extend = function(subclass, superclass, members)
我可以从 ExtJs4 文档中看到 Ext.extend 已弃用,但是我只想在更改所有 Ext.extend 到
Ext.define
。
大家有什么帮助吗?
I'm updating my project from Ext3.3 to Ext4.
I have added the ext3-core-compat.js
and ext3-compat.js
files after added the new ext4 ext-all-debug.js
file.
I am getting a members is udefined error
on line 3262 of ext-all-debug.js.
Which is inside the Ext.extend method which accepts 3 parameters:
Ext.extend = function(subclass, superclass, members)
i can see from the ExtJs4 documentation that Ext.extend is deprecated, however I just want to get my code working before I change all of my Ext.extend
to Ext.define
.
Any help guys?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设您使用的是匿名构造函数语法,就像这样?
如果是这样,则 Ext4 或 compat 层无法检测到此形式,并且必须手动更新为新的标准 Ext.define 语法。我不确定迁移文档中当前是否提到了这一点,如果没有,我将添加它。
I assume that you're using the anonymous constructor syntax, like this?
If so, this form cannot be detected by Ext4 or the compat layer and must be updated manually to the new standard
Ext.define
syntax. I'm not sure if this is currently mentioned in the migration documentation, and if not I'll add it.假设您已按照 ExtJS 3 到 4 迁移指南中的步骤操作,我认为除了手动检查您的应用程序并进行更改之外,没有其他可以做的事情。根据 Sencha 关于迁移的博客文章(强调矿):
Assuming that you have followed the steps in the ExtJS 3 to 4 migration guide, I don't think that there is much else that can be done other than to manually go through your application and make the changes. According to Sencha's blog post on the migration (emphasis mine):