Google Chrome - “aw snap”使用 Ext JS 4.0 的错误消息
我的控制器中有以下代码。这在 Internet Explorer 9 和 Firefox 中运行良好。但是,我在 Chrome 中收到“aw snap!。出了点问题......”错误消息。
init: function () {
this.control({
'jobslist': {
selectionchange: this.onJobSelect
},
'jobdetail button[action=create]': {
click: this.onNewJobSelect
},
'jobdetail button[action=save]': {
click: this.onJobUpdate
},
'jobform button[action=remove]': {
click: this.onJobRemove
}
});
},
onLaunch: function () {
var jobsStore = this.getJobsStore();
jobsStore.load({
callback: this.onJobsLoad,
scope: this
});
},
onJobUpdate: function (selection) {
var form = Ext.getCmp('jobForm');
var record = form.getRecord();
var values = form.getValues();
record.set(values);
}
I have the following code in my controller. This works fine in Internet Explorer 9 and Firefox. However, I get "aw snap!. Something went wrong ..." error message in Chrome.
init: function () {
this.control({
'jobslist': {
selectionchange: this.onJobSelect
},
'jobdetail button[action=create]': {
click: this.onNewJobSelect
},
'jobdetail button[action=save]': {
click: this.onJobUpdate
},
'jobform button[action=remove]': {
click: this.onJobRemove
}
});
},
onLaunch: function () {
var jobsStore = this.getJobsStore();
jobsStore.load({
callback: this.onJobsLoad,
scope: this
});
},
onJobUpdate: function (selection) {
var form = Ext.getCmp('jobForm');
var record = form.getRecord();
var values = form.getValues();
record.set(values);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的对象中有一个空白值。这可能会打破它。
You have a blank value in your object. This is probably breaking it.
最后经过一番折腾才解决了这个问题。我的观点是扩展网格:
它应该是
Finally, after much trouble resolved this. My view was extending grid:
It should have been