使用以下存储从远程服务器加载列表
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
我将不胜感激。谢谢