无法从“ XMLHttpRequest”读取“ responseText”属性

使用以下存储从远程服务器加载列表

Calculation

它已正确加载列表,但查看Chrome控制台时出现错误

var store = Ext.create('Ext.data.Store',{
    model: 'MyAppName.view.home.OrderListViewModel',groupField: 'customer',proxy: {
        type: 'ajax',url: 'ordersList.php',reader: {
            type: 'json',rootProperty: 'orders',totalProperty: 'total'
        }
    },autoLoad: {
        params: {},callback: function (records,options,success) {
            if (success) {
                alert('here I am');
            }
        }
    }
});

呆呆地看着萤火虫就像仍在尝试加载列表。

Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'json').

我在程序中使用的每个GET fabricList.php?_dc=1579631906478&page=1&start=0&limit=25 Params Headers Response 都发生了同样的情况。 我正在使用ExtJS版本7.0.0.40 我将不胜感激。谢谢

A19900919woaijisuanj 回答:无法从“ XMLHttpRequest”读取“ responseText”属性

此错误可能表示从端点fabricList.php MDN返回的数据格式不正确。请发布从fabricList.php返回的数据,并在此处查看Content-Type标头作为回应

本文链接:https://www.f2er.com/2736785.html

大家都在问