Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/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
Extjs 无法读取';responseText';来自'的属性;XMLHttpRequest';_Extjs_Xmlhttprequest_Responsetext - Fatal编程技术网

Extjs 无法读取';responseText';来自'的属性;XMLHttpRequest';

Extjs 无法读取';responseText';来自'的属性;XMLHttpRequest';,extjs,xmlhttprequest,responsetext,Extjs,Xmlhttprequest,Responsetext,使用以下存储从远程服务器加载列表 var store=Ext.create('Ext.data.store'{ 模型:“MyAppName.view.home.OrderListViewModel”, groupField:'客户', 代理:{ 键入:“ajax”, url:'ordersList.php', 读者:{ 键入:“json”, rootProperty:'订单', totalProperty:'total' } }, 自动加载:{ 参数:{}, 回调:函数(记录、选项、成功){ 如

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

var store=Ext.create('Ext.data.store'{
模型:“MyAppName.view.home.OrderListViewModel”,
groupField:'客户',
代理:{
键入:“ajax”,
url:'ordersList.php',
读者:{
键入:“json”,
rootProperty:'订单',
totalProperty:'total'
}
},
自动加载:{
参数:{},
回调:函数(记录、选项、成功){
如果(成功){
警惕(“我在这里”);
}
}
}
});
它正确地加载了列表,但是查看Chrome控制台会发现错误

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').
Nad看着firebug好像还在尝试加载列表

GET fabricList.php?_dc=1579631906478&page=1&start=0&limit=25
Params Headers Response
我在程序中使用的每个
store:Ext.create('Ext.data.store',{})
都会发生同样的情况。 我使用的是ExtJS版本7.0.0.40
在这件事上,如果有任何帮助,我将不胜感激。谢谢

此错误可能表示从端点返回的数据格式不正确
fabricList.php
。请发布从
fabricList.php
返回的数据,并在此处检查
内容类型
标题