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
返回的数据,并在此处检查内容类型
标题