Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs6 classic 加载按钮处理程序函数中的存储时出现未捕获类型错误_Extjs6 Classic - Fatal编程技术网

Extjs6 classic 加载按钮处理程序函数中的存储时出现未捕获类型错误

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

我在加载按钮处理函数中的存储时遇到了未捕获的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.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
函数