Extjs6 classic 加载按钮处理程序函数中的存储时出现未捕获类型错误
我在加载按钮处理函数中的存储时遇到了未捕获的TypeError, 我的电脑有问题吗 代码:Extjs6 classic 加载按钮处理程序函数中的存储时出现未捕获类型错误,extjs6-classic,Extjs6 Classic,我在加载按钮处理函数中的存储时遇到了未捕获的TypeError, 我的电脑有问题吗 代码: 错误消息: Uncaught TypeError: instance[configPropMap[name].names.get] is not a function 调试器屏幕截图: 我有一个解决方案,使用下面的syncajax而不是proxy.ajax Ext.define('MyApp.store.proxy.SyncAjax', { extend : 'Ext.data.proxy.Aja
错误消息:
Uncaught TypeError: instance[configPropMap[name].names.get] is not a function
调试器屏幕截图:
我有一个解决方案,使用下面的
syncajax
而不是proxy.ajax
Ext.define('MyApp.store.proxy.SyncAjax', {
extend : 'Ext.data.proxy.Ajax',
alias : 'proxy.syncajax',
config : {
async : false
},
buildRequest : function() {
var me = this,
request = me.callParent(arguments);
request.defaultConfig.async = me.getAsync();
request.getAsync = function() {
request.getAsync = null;
return me.getAsync();
};
return request;
}});
我有一个解决方案,使用下面的
syncajax
而不是proxy.ajax
Ext.define('MyApp.store.proxy.SyncAjax', {
extend : 'Ext.data.proxy.Ajax',
alias : 'proxy.syncajax',
config : {
async : false
},
buildRequest : function() {
var me = this,
request = me.callParent(arguments);
request.defaultConfig.async = me.getAsync();
request.getAsync = function() {
request.getAsync = null;
return me.getAsync();
};
return request;
}});
错误发生在ext-all-rtl-debug.js中,我不知道错误的名称是什么,请查看调试器。
name
是async
,但是instance
没有getAsync
函数错误发生在ext-all-rtl-debug.js中,我不知道错误的名称是什么,查看调试器。name
是async
,但是instance
没有getAsync
函数